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.

Graphics

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

Bitmaps are collections of pixel information ...

Get Android™ Development Patterns: Best Practices for Professional Developers 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.