O'Reilly logo

Android Wireless Application Development by Lauren Darcey, Shane Conder

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

8. Drawing and Working with Animation in Android

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, text, and animations to the screen. Then later, in Chapter 14, “Using Android 3D Graphics with OpenGL ES,” we dive further into using the OpenGL ES library for 2D and 3D rendering.

Drawing on the Screen

We talked about layouts and the various View widgets available, but now we work at a slightly lower level and talk about drawing on the screen. With Android, we can draw images such as PNG and JPG graphics, text, or primitive shapes to the screen. We can paint them with various colors, styles, and gradients. We ...

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