9. Drawing and Animation

Creating rich experiences in Android applications cannot be done with amazing code alone. There must be visual allure—something that draws users in and gives their minds something to play with for those moments between view changes, swipes, and loading events.

This can be done with shapes, drawables, bitmaps, 3D graphics, and animation. This chapter explains the classes, frameworks, and best practices to add visuals to your application.


Whether you are displaying a bitmap or using OpenGL ES to create textures and shapes, there are multiple ways to display visuals with Android. In this section, you learn about bitmaps, drawables, and rendering with OpenGL ES.


Bitmaps are collections of pixel information ...

Get Android™ Development Patterns: Best Practices for Professional Developers now with O’Reilly online learning.

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