to top
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 Drawables. 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 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)

Since: API Level 1

public synchronized boolean canConstantState ()

Since: API Level 1

public int getChangingConfigurations ()

Since: API Level 1

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

public final int getChildCount ()

Since: API Level 1

public final Drawable[] getChildren ()

Since: API Level 1

public final int getConstantHeight ()

Since: API Level 1

public final int getConstantMinimumHeight ()

Since: API Level 1

public final int getConstantMinimumWidth ()

Since: API Level 1

public final Rect getConstantPadding ()

Since: API Level 1

public final int getConstantWidth ()

Since: API Level 1

public final int getEnterFadeDuration ()

Since: API Level 11

public final int getExitFadeDuration ()

Since: API Level 11

public final int getOpacity ()

Since: API Level 1

public void growArray (int oldSize, int newSize)

Since: API Level 1

public final boolean isConstantSize ()

Since: API Level 1

public final boolean isStateful ()

Since: API Level 1

public final void setConstantSize (boolean constant)

Since: API Level 1

public final void setEnterFadeDuration (int duration)

Since: API Level 11

public final void setExitFadeDuration (int duration)

Since: API Level 11

public final void setVariablePadding (boolean variable)

Since: 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 ()

Since: API Level 11