Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Android Transitions
Search
Bryan Herbst
December 11, 2014
Programming
0
62
Android Transitions
An exploration of the Transitions framework for animating the transition between two screens
Bryan Herbst
December 11, 2014
Tweet
Share
More Decks by Bryan Herbst
See All by Bryan Herbst
Semantics in Jetpack Compose
bherbst
0
12k
Kotlin Multiplatform
bherbst
0
840
Android App Architecture & Navigation
bherbst
0
2k
What's in the Android Toolbox
bherbst
0
520
Gradle Deep Dive
bherbst
2
2k
Actions with Google
bherbst
0
1.4k
Android Transitions
bherbst
0
490
Databinding in Android
bherbst
0
450
Activities Vs. Fragments
bherbst
0
350
Other Decks in Programming
See All in Programming
なぜあの開発者はDevRelに伴走し続けるのか / Why Does That Developer Keep Running Alongside DevRel?
nrslib
3
370
ててべんす独演会〜Flowの全てを語ります〜
tbsten
1
220
実践AIチャットボットUI実装入門
syumai
7
2.5k
CSC509 Lecture 06
javiergs
PRO
0
240
CSC509 Lecture 02
javiergs
PRO
0
410
CSC305 Lecture 01
javiergs
PRO
1
400
CI_CD「健康診断」のススメ。現場でのボトルネック特定から、健康診断を通じた組織的な改善手法
teamlab
PRO
0
180
Introducing ReActionView: A new ActionView-Compatible ERB Engine @ Kaigi on Rails 2025, Tokyo, Japan
marcoroth
3
920
開発者への寄付をアプリ内課金として実装する時の気の使いどころ
ski
0
350
タスクの特性や不確実性に応じた最適な作業スタイルの選択(ペアプロ・モブプロ・ソロプロ)と実践 / Optimal Work Style Selection: Pair, Mob, or Solo Programming.
honyanya
3
140
Web Components で実現する Hotwire とフロントエンドフレームワークの橋渡し / Bridging with Web Components
da1chi
3
1.8k
いま中途半端なSwift 6対応をするより、Default ActorやApproachable Concurrencyを有効にしてからでいいんじゃない?
yimajo
2
340
Featured
See All Featured
Site-Speed That Sticks
csswizardry
11
880
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
45
2.5k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Facilitating Awesome Meetings
lara
56
6.6k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
It's Worth the Effort
3n
187
28k
Why Our Code Smells
bkeepers
PRO
339
57k
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.6k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.5k
Building Flexible Design Systems
yeseniaperezcruz
329
39k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.6k
Transcript
Transitions Bryan Herbst Senior Software Engineer The Nerdery
What is a Transition? Easy way to animate a
group of Views Animates from one Scene to another Scene Can be used to animate between Activities and Fragments
Scenes Snapshot of a ViewGroup Can be defined
in Java or XML (or let the framework do it)
Making a transition
Making a transition (old) ObjectAnimator anim = ObjectAnimator.ofFloat(mButton, "alpha", 1f,
0f); anim.start();
Making a transition (new) TransitionManager.beginDelayedTransition(mRoot, new Fade()); mButton.setVisibility(View.INVISIBLE);
AutoTransition Fade Move Resize
How it works 1. beginDelayedTransition() => Take a snapshot of
ViewGroup 2. Update Views 3. On next layout pass, Android takes another snapshot and creates animations Note: you can also define Scenes in XML
Activity Transitions
Activity Transitions (API 21) Request Window.FEATURE_ACTIVITY_TRANSITIONS and Window.FEATURE_CONTENT_TRANSITIONS in
both Activities Set a transition name on the View in both Activities Create a Bundle with Call startActivity(intent, transitionBundle); makeSceneTransitionAnimation(activity, sharedView, viewTransitionName).toBundle();