Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Android Transitions
Bryan Herbst
December 11, 2014
Programming
0
33
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
1.4k
Kotlin Multiplatform
bherbst
0
290
Android App Architecture & Navigation
bherbst
0
1.5k
What's in the Android Toolbox
bherbst
0
200
Gradle Deep Dive
bherbst
1
1.1k
Actions with Google
bherbst
0
860
Android Transitions
bherbst
0
150
Databinding in Android
bherbst
0
180
Activities Vs. Fragments
bherbst
0
130
Other Decks in Programming
See All in Programming
Git Rebase
bkuhlmann
7
1k
質とスピード(2022春版、質疑応答用資料付き) / Quality and Speed 2022 Spring Edition
twada
PRO
29
18k
Milestoner
bkuhlmann
1
200
Learning DDD輪読会#4 / Learning DDD Book Club #4
suzushin54
1
150
不具合に立ち向かう テスト戦略 ~ NestJSで作るCI環境 ~
naoki_haba
0
100
dbtとBigQueryで始めるData Vault入門
kazk1018
0
190
Groovy Roadmap
paulk
7
13k
httputil.ReverseProxy でもリトライがしたい
toga4
0
110
LOWYAの信頼性向上とNew Relic
kazumax55
4
370
脱オブジェクト指向講座(5分LT資料)
kishida
8
11k
Jetpack Compose 頑張らないPreviewParameterProvider
horie23
0
110
Update from the Elixir team - 2022
whatyouhide
0
200
Featured
See All Featured
Building Adaptive Systems
keathley
25
1.1k
Designing on Purpose - Digital PM Summit 2013
jponch
106
5.6k
Rails Girls Zürich Keynote
gr2m
86
12k
Ruby is Unlike a Banana
tanoku
91
9.2k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_i
21
14k
Designing Experiences People Love
moore
130
22k
How GitHub Uses GitHub to Build GitHub
holman
465
280k
What’s in a name? Adding method to the madness
productmarketing
11
1.5k
GitHub's CSS Performance
jonrohan
1020
410k
Making Projects Easy
brettharned
98
4.3k
Art, The Web, and Tiny UX
lynnandtonic
280
17k
Put a Button on it: Removing Barriers to Going Fast.
kastner
56
2.3k
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();