DrawableContainer


public class DrawableContainer
extends Drawable implements Drawable.Callback

java.lang.Object
   ↳ android.graphics.drawable.Drawable
     ↳ android.graphics.drawable.DrawableContainer


A helper class that contains several Drawables and selects which one to use. You can subclass it to create your own DrawableContainers or directly use one its child classes.

Summary

Nested classes

class DrawableContainer.DrawableContainerState

A ConstantState that can contain several Drawables. 

Public constructors

DrawableContainer()

Public methods

void applyTheme(Resources.Theme theme)

Applies the specified theme to this Drawable and its children.

boolean canApplyTheme()

void draw(Canvas canvas)

Draw in its bounds (set via setBounds) respecting optional effects such as alpha (set via setAlpha) and color filter (set via setColorFilter).

int getAlpha()

Gets the current alpha value for the drawable.

int getChangingConfigurations()

Return a mask of the configuration parameters for which this drawable may change, requiring that it be re-created.

Drawable.C