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
850
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
500
Databinding in Android
bherbst
0
450
Activities Vs. Fragments
bherbst
0
350
Other Decks in Programming
See All in Programming
Webサーバーサイド言語としてのRustについて
kouyuume
1
4.9k
NixOS + Kubernetesで構築する自宅サーバーのすべて
ichi_h3
0
1.2k
Writing Better Go: Lessons from 10 Code Reviews
konradreiche
3
6.9k
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
560
コードとあなたと私の距離 / The Distance Between Code, You, and I
hiro_y
0
190
ALL CODE BASE ARE BELONG TO STUDY
uzulla
28
6.7k
テーブル定義書の構造化抽出して、生成AIでDWH分析を試してみた / devio2025tokyo
kasacchiful
0
300
Reactive Thinking with Signals and the Resource API
manfredsteyer
PRO
0
110
One Enishi After Another
snoozer05
PRO
0
160
alien-signals と自作 OSS で実現する フレームワーク非依存な ロジック共通化の探求 / Exploring Framework-Agnostic Logic Sharing with alien-signals and Custom OSS
aoseyuu
2
660
TransformerからMCPまで(現代AIを理解するための羅針盤)
mickey_kubo
7
5.4k
3年ぶりにコードを書いた元CTOが Claude Codeと30分でMVPを作った話
maikokojima
0
650
Featured
See All Featured
Building an army of robots
kneath
305
46k
The Cost Of JavaScript in 2023
addyosmani
55
9.1k
It's Worth the Effort
3n
187
28k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
30
2.9k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.1k
Making the Leap to Tech Lead
cromwellryan
135
9.6k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.2k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6k
Done Done
chrislema
185
16k
Visualization
eitanlees
149
16k
Agile that works and the tools we love
rasmusluckow
331
21k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
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();