Re-animation

Nick Butcher
Jun 9, 2017 · 4 min read

14 is the new 21

Under construction

Call me back

avd?.registerAnimationCallback(
object : Animatable2Compat.AnimationCallback() {
override fun onAnimationEnd(drawable: Drawable?) {
imageView.post { avd.start() }
}
})

Stale state

<!-- Fade dot 5 in as it enters the scene -->
<set>
<objectAnimator
android:propertyName="fillAlpha"
android:valueFrom="0"
android:valueTo="0"
android:duration="0" />
<objectAnimator
android:propertyName="fillAlpha"
android:valueFrom="0"
android:valueTo="1"
android:startOffset="1900"
android:duration="60"
android:interpolator="@android:interpolator/linear" />
</set>

Form a queue

Impressively unimpressive

Animation running on API 16. #holoyolo.

Android Developers

The official Android Developers publication on Medium

Thanks to Florina Muntenescu.

Nick Butcher

Written by

Android designer + developer @ Google

Android Developers

The official Android Developers publication on Medium