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
71
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Android Transitions
An exploration of the Transitions framework for animating the transition between two screens
Bryan Herbst
December 11, 2014
More Decks by Bryan Herbst
See All by Bryan Herbst
Semantics in Jetpack Compose
bherbst
0
13k
Kotlin Multiplatform
bherbst
0
990
Android App Architecture & Navigation
bherbst
0
2.1k
What's in the Android Toolbox
bherbst
0
560
Gradle Deep Dive
bherbst
2
2.2k
Actions with Google
bherbst
0
1.5k
Android Transitions
bherbst
0
570
Databinding in Android
bherbst
0
480
Activities Vs. Fragments
bherbst
0
390
Other Decks in Programming
See All in Programming
音楽のための関数型プログラミング言語mimiumにおける多段階計算の活用
tomoyanonymous
1
350
PHP初心者セッション2026 〜生成AIでは見えない裏側を知る:今だからLAMPを通して仕組みを学ぶ〜
kashioka
0
650
【やさしく解説 設計編 #0】DDDのコード、読めるのに分からない人へ
panda728
PRO
2
280
Lean は証明の正しさを確認するためだけのツールって思ってませんか?
inoueasei
1
110
任せる範囲はこう広がった / How the Scope of AI Delegation Has Expanded
nrslib
1
270
全PRの83%がAIレビューだけでマージできるようになった開発組織はその後どうなったか
athug
0
310
AWS CDK を「作」ってみた 〜フルスクラッチで見えた CDK の裏側〜 / aws-cdk-from-scratch
gotok365
3
500
使用 Meilisearch 建立新聞搜尋工具
johnroyer
0
170
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
300
琵琶湖の水は止められてもNet--HTTPのリトライは止められない / You might be able to stop the water flow of Lake Biwa but you can't stop Net::HTTP retries
luccafort
PRO
0
430
関数型プログラミングのメリットって何だろう?
wanko_it
0
190
Haskell/Servantを通してWebミドルウェアを捉え直す
pizzacat83
1
610
Featured
See All Featured
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
880
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
500
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
520
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
360
Practical Orchestrator
shlominoach
191
11k
Designing Powerful Visuals for Engaging Learning
tmiket
1
460
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Code Reviewing Like a Champion
maltzj
528
40k
Speed Design
sergeychernyshev
33
1.9k
Docker and Python
trallard
47
4k
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();