9. Hardware-Accelerated 2D

Graphics, drawings, and animations play an important role in making an application attractive, dynamic, and interesting. But using more graphics and drawings means consuming a lot of resources, which may drastically slow down an application. You can use hardware acceleration to improve the performance of a graphics-based application. In this chapter, you will learn to enable hardware acceleration in applications. You will also learn to apply hardware acceleration to specific views during their animation. That is, you will discover how to apply hardware and software layers to the individual views. In animations and other resource-consuming applications, the graphical user interface (GUI) thread is usually overburdened ...

Get The Android™ Tablet Developer’s Cookbook now with O’Reilly online learning.

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