Demonstration of choreographed property animations. Jump to the activity for the most relevant example code. Animations illustrated include:
- Using the
ObjectAnimatorfor basic view animations - Using the
setRepeatModeandsetRepeatCountto repeat animations - Animating a view between two background colors using
ArgbEvaluator - Configuring the interpolation mode of an animation with
setInterpolator - Setting animation callback with
AnimatorListenerAdapter - Choreographing multiple animations with the
AnimatorSet - Using the
ViewPropertyAnimatorto easily animate a view - Inflating and playing animations from XML
res/animator - Creating custom-timed animations with the
ValueAnimator
Preview of the app:
Refer to the CodePath Animations Guide for further details.
