DevBytes: Android 4.4 Transitions

Android Developers · 121K views · 2013 · 17:00

Open on YouTube

Software (other)UX & UI designtutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering questions about smooth layout animations, scene-based transitions and backporting the KitKat Transitions framework.

Recommended by 3 people across 3 different months, 2013 to 2016.

What it is

A DevBytes episode from the Android Developers channel introducing the Transitions API added in Android 4.4 KitKat. It explains how to ask the system to run a transition, change the UI, and let the framework work out the differences and animate them with little code.

What people said

Recommends sockeqwe · 2014-12 · Stack Overflow · on “Animation not smooth”

The problem is, that you are trying to animate the height of your Layout. That means, that with every animation step you call setLayoutParams() which forces your whole layout (incl. children) to be relayouted by going through the complete view hierarchy and this leads to laggy animation. Layouting things is an expensive operation! There are some "workarounds" (I'm not sure what you want to do): Since Android 4.0 you simply can use animate layout changes in your xml if you simply want to show / hide a element with animations in your layout For more complex things you may consider to use Transitions framework introduced in Kitkat (Api 19) [this video] . Backports: [LINK] or [LINK] "Fake" the animat

Recommends Zielony · 2015-09 · Stack Overflow · on “Android material design pre lollipop activity transitions”

Using this library is very simple and works exactly like all other gradle libraries with public aar distributions. You can find tons of information on the Internet. For example: [LINK] And btw, this library works only on Lollipop and Marshmallow. Official activity transitions are only for 5.+. This backport library should work: [LINK] . You can also find few ideas on YouTube: [this video]

Recommends David · 2016-01 · Stack Overflow · on “Android One Activity Transition Different Views”

Thank pskink, I believe this is what I was looking for! Android Scene was built for this exact purpose. Here are two links that provide additional info about it: [LINK] [this video]

Cites spierce7 · 2013-11 · Stack Overflow · on “Android Transition Framework Backport?”

The new Android Transition framework available in Android 4.4 KitKat is by far one of the coolest things I've seen done for android in a long time. As a developer I've recently switched to developing for sdk 14 (ICS), which means I'm still years away from from using these awesome new features. Android 4.4 KitKat Transitions [LINK] Transitions DevBytes Youtube Video [this video] Is there any news of anyone, or even Google themselves creating a backport for these awesome features?