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 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.