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 ...
Get Android Wireless Application Development 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.