Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
This chapter covered the basics of animation on Android. There are currently three animation frameworks: drawable animation, view animation, and property animation. Drawable animations are simple to implement but require a different image for each frame of animation. View animations can be used only on views and have been deprecated in favor of property animations. Property animations are very powerful and allow you to apply time-based functions to any object. In this chapter, you learned that
• Drawable animations create sprite-style animated graphics by rapidly switching images.
• You should define your animations using XML for easy reusability.
• Android supplies several interpolators that alter how your animation is applied over time.