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
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
940
MLKit DevFest18 ATL
bolot
0
200
Kotlin Coroutines: Beyond async-await
bolot
2
710
Kotlin - Class Destroyer
bolot
0
660
Secure Networking, Connect Tech 2017
bolot
0
110
Defensive Android Security
bolot
0
140
What Android developers should know about security
bolot
0
340
Other Decks in Programming
See All in Programming
Building an Out-of-Order CPU
latte72
0
690
FastAPI の並行処理モデルを完全に理解する
hoto17296
9
3.8k
書籍「プロフェッショナルAI駆動開発」紹介スライド
juntaromatsumoto
0
990
ソフトウェアラスタライザ
fadis
1
790
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
340
go-spidermonkeyでAIエージェントのCode Modeを実装する
syumai
3
1.5k
PyO3 で既存 Python 評価器を Rust core 化する ー wasm-bindgen でブラウザにも配るための設計
kdash
1
440
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
150
『寄り添うラジオ』をAIで作る 体験価値から逆算した、会話しないUXと品質設計
theoriatec2024
2
120
「つくるAI」だけではバグは見つからない ~テストに必要な「見つけるAI」を分離させる戦略~
mfunaki
0
230
高専、大学編入、そして未踏へ〜プロダクト開発とキャリアの歩み - Technical College, University Transfer, and On to “Mitou” / My Journey in Product Development and Career
pkmiya
0
140
AIエージェント時代のコードレビューを設計する
nogu66
6
2.5k
Featured
See All Featured
Designing Experiences People Love
moore
143
24k
Six Lessons from altMBA
skipperchong
29
4.5k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Making Projects Easy
brettharned
120
6.7k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
990
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
520
Are puppies a ranking factor?
jonoalderson
2
3.9k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
Leo the Paperboy
mayatellez
8
2.2k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
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)