11. Creating Advanced Graphics

The Android view framework is convenient for creating complex layouts. However, this convenience comes at the cost of performance. When performance is critical, Android provides several more-robust graphics capabilities with increasing levels of difficulty. In this chapter, you will learn that the SurfaceView and TextureView classes use the standard Canvas object combined with a separate rendering thread to achieve better performance than standard views; that the new RenderScript framework can be used to create architecture-independent graphics rendering; and that OpenGL is available for serious graphics work and games.

Using Canvas

The easiest way to increase drawing performance is by moving your performance-critical ...

Get Android UI Fundamentals: Develop and Design 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.