A shorter version of a talk I gave about Android animations.
Keynote version: http://goo.gl/FUm0Gc
I Can Animate and SoCan YouDaniel Lew, Jan. 7 2014
View Slide
Typical AnimationDemo
What Can Be Done
Revelations
Revelation #1Every animation is unique
Revelation #2Animation code is not pretty
Revelation #3Animations firstAnimate
Revelation #4Animate for Ice Cream Sandwich+
Building Animations• Figure out whatattributes to animate • Design View hierarchy • Measure attribute start/end values • Setup and run animators
Performance• Choppy animation == painful • Performance cannot be an afterthought
Profile GPU Rendering• Blue - Draw • Red - Process • Orange - Execute • Green line - your goal
Show GPU Overdraw• Shows overdrawn pixels • Best to worst: nothing,blue, green, red, dark red • Some overdrawnecessary, but reduce ifpossible
Profilers• TraceView • Systrace • OpenGL Traces
Profile Warning• Can be inaccurate • One profiling tool at a time, please • Profile multiple devices
Resources• Longer Talk: http://goo.gl/ICTCAC • Android Docs: goo.gl/4aZIzM • DevBytes: goo.gl/QeTM9B • Chet Haase: graphics-geek.blogspot.com/ • Romain Guy: curious-creature.org • Google IO Sessions
Thank You!• Movies App Source: http://goo.gl/WiRTlQ • Blog: http://daniel-codes.blogspot.com/ • @danlew42, +DanielLew