O'Reilly logo

Pro Android Graphics by Wallace Jackson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required