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
52
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
8.1k
Kotlin Multiplatform
bherbst
0
600
Android App Architecture & Navigation
bherbst
0
1.9k
What's in the Android Toolbox
bherbst
0
420
Gradle Deep Dive
bherbst
2
1.7k
Actions with Google
bherbst
0
1.2k
Android Transitions
bherbst
0
340
Databinding in Android
bherbst
0
360
Activities Vs. Fragments
bherbst
0
280
Other Decks in Programming
See All in Programming
ドメイン駆動設計の実践
masuda220
PRO
17
5.1k
大規模マルチテナントを解決するYugabyteDBという選択肢
nnaka2992
1
250
feature環境をGitHub ActionsとCloudFormationでいい感じに管理する
nealle
2
310
Findy - エンジニア向け会社紹介 / Findy Letter for Engineers
findyinc
2
81k
CSC307 Lecture 12
javiergs
PRO
0
220
Play Billing Library 7.0.0 変更点まとめ@potatotips#88
kako351
0
160
Async Await: Mastering Python's Time-Bending Tricks - EuroPython2024
yanbo
1
290
I/O Extended Android in Korea 2024 ~ Whats new in Android development tools
pluu
0
250
ピグパーティにおけるMongoDB CommunityバージョンからAtlasへの移行事例
10969hotaka
0
130
AWSでゲームサーバーを運用! Amazon GameLiftのお話
iriikeita
0
200
英語
s_shimotori
1
220
わかりやすい正解を捨てて、コトに向き合う - スクラムフェス金沢2024 スポンサーセッション
yusukekokubo
0
170
Featured
See All Featured
Adopting Sorbet at Scale
ufuk
71
8.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
29
2.5k
Rebuilding a faster, lazier Slack
samanthasiow
78
8.5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
18
1.2k
Optimizing for Happiness
mojombo
373
69k
Producing Creativity
orderedlist
PRO
340
39k
A Modern Web Designer's Workflow
chriscoyier
689
190k
Fantastic passwords and where to find them - at NoRuKo
philnash
42
2.7k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
129
32k
The Language of Interfaces
destraynor
151
23k
Leading Effective Engineering Teams 2024
addyosmani
3
300
The Brand Is Dead. Long Live the Brand.
mthomps
52
36k
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();