Chapter     14

Frame-Based Animation: Using the AnimationDrawable Class

In this fourteenth chapter, we will take a closer look at the Java coding side of implementing frame animation in Android. We looked at the concepts behind frame-based animation and how to set up frame animation using the XML definition file work process back in Chapter 3, because I thought you should be able to at least get basic animation running in your application early on in the game (in this book).

The task we’re going to focus on in this chapter is how to implement frame animation using only Java code, and zero XML, which is a bit more advanced than the way that we implemented frame animation for an application splash screen back in Chapter 3, as Java coding is generally ...

Get Pro Android Graphics now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.