Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static abstract class

DrawableContainer.DrawableContainerState

extends Drawable.ConstantState
java.lang.Object
   ↳ android.graphics.drawable.Drawable.ConstantState
     ↳ android.graphics.drawable.DrawableContainer.DrawableContainerState

Class Overview

A ConstantState that can contain several Drawable s. This class was made public to enable testing, and its visibility may change in a future release.

Summary

Public Methods
final int addChild ( Drawable dr)
synchronized boolean canConstantState ()
int getChangingConfigurations ()
Return a bit mask of configuration changes that will impact this drawable (and thus require completely reloading it).
final Drawable getChild (int index)
final int getChildCount ()
final Drawable[] getChildren ()
final int getConstantHeight ()
final int getConstantMinimumHeight ()
final int getConstantMinimumWidth ()
final Rect getConstantPadding ()
final int getConstantWidth ()
final int getEnterFadeDuration ()
final int getExitFadeDuration ()
final int getOpacity ()
void growArray (int oldSize, int newSize)
final boolean isConstantSize ()
final boolean isStateful ()
final void setConstantSize (boolean constant)
final void setEnterFadeDuration (int duration)
final void setExitFadeDuration (int duration)
final void setVariablePadding (boolean variable)
A boolean value indicating whether to use the maximum padding value of all frames in the set (false), or to use the padding value of the frame being shown (true).
Protected Methods
void computeConstantSize ()
[Expand]
Inherited Methods
From class android.graphics.drawable.Drawable.ConstantState
From class java.lang.Object

Public Methods

public final int addChild ( Drawable dr)

Added in API level 1

public synchronized boolean canConstantState ()

Added in API level 1

public int getChangingConfigurations ()

Added in API level 1

Return a bit mask of configuration changes that will impact this drawable (and thus require completely reloading it).

public final Drawable getChild (int index)

public final int getChildCount ()

Added in API level 1

public final Drawable[] getChildren ()

Added in API level 1

public final int getConstantHeight ()

Added in API level 1

public final int getConstantMinimumHeight ()

Added in API level 1

public final int getConstantMinimumWidth ()

Added in API level 1

public final Rect getConstantPadding ()

Added in API level 1

public final int getConstantWidth ()

Added in API level 1

public final int getEnterFadeDuration ()

public final int getExitFadeDuration ()

public final int getOpacity ()

Added in API level 1

public void growArray (int oldSize, int newSize)

Added in API level 1

public final boolean isConstantSize ()

Added in API level 1

public final boolean isStateful ()

Added in API level 1

public final void setConstantSize (boolean constant)

Added in API level 1

public final void setEnterFadeDuration (int duration)

public final void setExitFadeDuration (int duration)

public final void setVariablePadding (boolean variable)

Added in API level 1

A boolean value indicating whether to use the maximum padding value of all frames in the set (false), or to use the padding value of the frame being shown (true). Default value is false.

Protected Methods

protected void computeConstantSize ()