Chapter  21

Exploring 2D Animation

Animation allows an object on a screen to change its color, position, size, or orientation over time. Animation capabilities in Android are practical, fun, and simple. They are used frequently.

Android 2.3 and prior releases support three types of animation: frame-by-frame animation, which occurs when a series of frames is drawn one after the other at regular intervals; layout animation, where you animate views inside a container view such as lists and tables; and view animation, in which you animate any view. The latter two fall into the category of tweening animation, which involves the drawings in between the key drawings.

NOTE: Android 3.0 enhanced animation by introducing the ability to animate the properties ...

Get Pro Android 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.