9. Drawing and Working with Animation

This chapter talks about the drawing and animation features built into Android, including creating custom View classes and working with Canvas and Paint to draw shapes and text. We also talk about animating objects on the screen in a variety of ways.

Drawing on the Screen

In Chapter 7, “Exploring User Interface Screen Elements,” and Chapter 8, “Designing User Interfaces with Layouts,” we talk about layouts and the various View classes available in Android to make screen design simple and efficient. Now we must think at a slightly lower level and talk about drawing objects on the screen. With Android, we can display images such as PNG and JPG graphics, as well as text and primitive shapes to the screen. ...

Get Android Wireless Application Development, 2/e now with O’Reilly online learning.

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