Chapter     12

Advanced Image Compositing: Using the LayerDrawable Class

In this twelfth chapter, we’ll take a closer look at the role that layers play in Android and digital image compositing, as well as how to implement LayerDrawable objects in Android to enhance our digital image compositing capabilities.

Layers are created and managed in Android applications by using one of the subclasses of the Drawable superclass. This subclass specifically manages layer stacks and is called the LayerDrawable class.

A layer will allow more advanced digital image compositing to be performed because it allows more than just an image or two to be composited together, such as you did in the previous chapter on PorterDuff image blending modes.

A LayerDrawable ...

Get Pro Android Graphics now with O’Reilly online learning.

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