18. Developing Android 2D Graphics Applications

In Android Wireless Application Development Volume I: Android Essentials, we talked 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. This chapter talks about the two dimensional drawing features built into the Android platform, including creating custom View classes and working with Canvas and Paint to draw shapes and text. You also learn about the hardware acceleration features of the Android platform and how to use them.

Drawing on the Screen

With Android, we can display images such as PNG and JPG graphics, as well as text and primitive shapes to ...

Get Android™ Wireless Application Development Volume II: Advanced Topics, Third Edition 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.