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 O’Reilly online learning.

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