Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
android transition framework
Search
bolot
January 16, 2014
Programming
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
android transition framework
bolot
January 16, 2014
More Decks by bolot
See All by bolot
Coroutines: Kotlin Versus DCSF18
bolot
2
940
MLKit DevFest18 ATL
bolot
0
210
Kotlin Coroutines: Beyond async-await
bolot
2
710
Kotlin - Class Destroyer
bolot
0
670
Secure Networking, Connect Tech 2017
bolot
0
110
Defensive Android Security
bolot
0
140
What Android developers should know about security
bolot
0
350
Other Decks in Programming
See All in Programming
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
310
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
740
コーディング自動化の次へ。人の介入をゼロにするファクトリーとサポートAIによる実践
timakin
5
3.8k
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
160
Next.js: The final boss of Web Performance
guaca
0
260
ActionController meets Protocol Buffers
sorah
0
540
sbt 2.0: takeoff
eed3si9n
0
160
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
Featured
See All Featured
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
600
Everyday Curiosity
cassininazir
0
350
How to build a perfect <img>
jonoalderson
1
6.1k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
The Cult of Friendly URLs
andyhume
79
7k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
480
Visualization
eitanlees
153
17k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
sira's awesome portfolio website redesign presentation
elsirapls
0
460
Building Applications with DynamoDB
mza
96
7.2k
Transcript
www.bignerdranch.com android.transition ! Bolot Kerimbaev
[email protected]
! 16 January 2014
www.bignerdranch.com Transitions android.transition New in KitKat 4.4 But back ported
www.bignerdranch.com XML <transitionManager xmlns:android="http:// schemas.android.com/apk/res/android"> <transition android:fromScene=“@layout/transition_scene1" android:toScene="@layout/transition_scene2" android:transition="@transition/changebounds"/> <transition
android:fromScene="@layout/transition_scene2" android:toScene="@layout/transition_scene1" android:transition=“@transition/changebounds"/> </transitionManager>
www.bignerdranch.com XML <transitionSet xmlns:android= "http://schemas.android.com/apk/res/android" android:transitionOrdering="sequential"> <changeBounds/> <fade android:fadingMode="fade_out" >
<targets> <target android:targetId="@id/view" /> </targets> </fade> </transitionSet>
www.bignerdranch.com XML scene = Scene.getSceneForLayout(sceneRoot, R.layout.scene, this); ! transitionManager =
inflater .inflateTransitionManager(R.transition.transitions_mgr, sceneRoot); ! transitionManager.transitionTo(scene);
www.bignerdranch.com Delayed transition TransitionManager.beginDelayedTransition(view); button.setText(“New button text!”); textView.setVisibility(View.VISIBLE);
www.bignerdranch.com Scenes ViewGroup view = inflater.inflate(R.layout.first, container, false); Scene scene
= new Scene(container, view); TransitionManager.go(scene);
www.bignerdranch.com Scenes & transitions ViewGroup view = inflater.inflate(R.layout.first, container, false);
Scene scene = new Scene(container, view); Transition transition = createTransition(); TransitionManager.go(scene, transition);
www.bignerdranch.com Customized transitions ChangeBounds changeBounds = new ChangeBounds(); ! Fade
fadeOut = new Fade(Fade.OUT); Fade fadeIn = new Fade(Fade.IN); ! TransitionSet transition = new TransitionSet() .setOrdering(TransitionSet.ORDERING_SEQUENTIAL) .addTransition(fadeOut) .addTransition(changeBounds) .addTransition(fadeIn); ! TransitionManager.go(scene, transition);
www.bignerdranch.com Customized transitions ChangeBounds changeBounds = new ChangeBounds() .setInterpolator(new AnticipateOvershootInterpolator());
! Fade fadeOut = new Fade(Fade.OUT); Fade fadeIn = new Fade(Fade.IN); ! TransitionSet transition = new TransitionSet() .setOrdering(TransitionSet.ORDERING_SEQUENTIAL) .addTransition(fadeOut) .addTransition(changeBounds) .addTransition(fadeIn); ! TransitionManager.go(scene, transition);
www.bignerdranch.com Customized transitions ChangeBounds changeBounds = new ChangeBounds().setDuration(2000) .setInterpolator(new AnticipateOvershootInterpolator());
! Fade fadeOut = new Fade(Fade.OUT).setDuration(1000); Fade fadeIn = new Fade(Fade.IN).setDuration(1000); ! TransitionSet transition = new TransitionSet() .setOrdering(TransitionSet.ORDERING_SEQUENTIAL) .addTransition(fadeOut) .addTransition(changeBounds) .addTransition(fadeIn); ! TransitionManager.go(scene, transition);
www.bignerdranch.com
www.bignerdranch.com More DevBytes: Android 4.4 Transitions video https://www.youtube.com/watch?v=S3H7nJ4QaD8 Transitions backport
https://github.com/guerwan/TransitionsBackport Sample code & blog post https://github.com/bolot/AndroidTransitionExample http://blog.bignerdranch.com (soon)