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

? Examples
final int addChild( Drawable dr)

? Examples
synchronized boolean canConstantState()

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

? Examples
final int getChildCount()

? Examples
final Drawable[] getChildren()

? Examples
final int getConstantHeight()

? Examples
final int getConstantMinimumHeight()

? Examples
final int getConstantMinimumWidth()

? Examples
final Rect getConstantPadding()

? Examples
final int getConstantWidth()

? Examples
final int getEnterFadeDuration()

? Examples
final int getExitFadeDuration()

? Examples
final int getOpacity()

? Examples
void growArray(int oldSize, int newSize)

? Examples
final boolean isConstantSize()

? Examples
final boolean isStateful()

? Examples
final void setConstantSize(boolean constant)

? Examples
final void setEnterFadeDuration(int duration)

? Examples
final void setExitFadeDuration(int duration)

? Examples
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 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 ()

Added in API level 11

public final int getExitFadeDuration ()

Added in API level 11

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)

Added in API level 11

public final void setExitFadeDuration (int duration)

Added in API level 11

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

Added in API level 11

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.