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 transition framework
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
bolot
January 16, 2014
Programming
180
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
930
MLKit DevFest18 ATL
bolot
0
200
Kotlin Coroutines: Beyond async-await
bolot
2
700
Kotlin - Class Destroyer
bolot
0
650
Secure Networking, Connect Tech 2017
bolot
0
99
Defensive Android Security
bolot
0
130
What Android developers should know about security
bolot
0
330
Other Decks in Programming
See All in Programming
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
210
Apache Hive: Toward a Cloud Native Lakehouse
okumin
0
170
アルゴリズムは何を圧縮しているのか ─ Haskell から育った「圧縮代数」というメンタルモデル
naoya
16
3.7k
광주소프트웨어마이스터고등학교 DevFest 특강 - 바이브 코딩 시대에서 주니어 개발자로 살아남는 방법
utilforever
1
160
AI時代、エンジニアはどう育つのか -未経験エンジニアの成長を間近で見て考えたこと-
thasu0123
0
200
2年かけて Deno に DOMMatrix を実装した話 / How I implemented DOMMatrix in Deno over two years
petamoriken
0
180
霧の中の代数的エフェクト
funnyycat
1
450
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
320
信頼性について考えてみる(SRE NEXT 2026 miniLT)
hayama17
0
230
komatsuna「分散システムにおけるバグ分析手法」
komatsunaqa
0
140
エンジニアにデザインハーネスを 〜デザインプロセスを規定するためのハーネス〜 / Design harness from an engineer's perspective
rkaga
2
1.8k
Build-to-own AI: Agentic Development for Humans
inesmontani
PRO
0
130
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Tell your own story through comics
letsgokoyo
1
1k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.2k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
370
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.5k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
A Soul's Torment
seathinner
6
3.1k
Documentation Writing (for coders)
carmenintech
77
5.4k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
The SEO Collaboration Effect
kristinabergwall1
1
510
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)