public abstract static class DrawableContainer.DrawableContainerState extends Drawable.ConstantState
Drawable
s.
This class was made public to enable testing, and its visibility may change in a future
release.Modifier | Constructor and Description |
---|---|
protected |
DrawableContainerState(DrawableContainer.DrawableContainerState orig,
DrawableContainer owner,
Resources res) |
Modifier and Type | Method and Description |
---|---|
int |
addAtlasableBitmaps(Collection<Bitmap> atlasList) |
int |
addChild(Drawable dr)
Adds the drawable to the end of the list of contained drawables.
|
boolean |
canApplyTheme()
Return whether this constant state can have a theme applied.
|
boolean |
canConstantState() |
protected void |
computeConstantSize() |
int |
getChangingConfigurations()
Return a bit mask of configuration changes that will impact
this drawable (and thus require completely reloading it).
|
Drawable |
getChild(int index) |
int |
getChildCount() |
Drawable[] |
getChildren() |
int |
getConstantHeight() |
int |
getConstantMinimumHeight() |
int |
getConstantMinimumWidth() |
Rect |
getConstantPadding() |
int |
getConstantWidth() |
int |
getEnterFadeDuration() |
int |
getExitFadeDuration() |
int |
getOpacity() |
void |
growArray(int oldSize,
int newSize) |
boolean |
isConstantSize() |
boolean |
isStateful() |
void |
setConstantSize(boolean constant) |
void |
setEnterFadeDuration(int duration) |
void |
setExitFadeDuration(int duration) |
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).
|
isAtlasable, newDrawable, newDrawable, newDrawable
protected DrawableContainerState(DrawableContainer.DrawableContainerState orig, DrawableContainer owner, Resources res)
public int getChangingConfigurations()
Drawable.ConstantState
getChangingConfigurations
in class Drawable.ConstantState
public final int addChild(Drawable dr)
dr
- the drawable to addpublic final int getChildCount()
public final Drawable[] getChildren()
public final Drawable getChild(int index)
public boolean canApplyTheme()
Drawable.ConstantState
canApplyTheme
in class Drawable.ConstantState
public final void setVariablePadding(boolean variable)
public final Rect getConstantPadding()
public final void setConstantSize(boolean constant)
public final boolean isConstantSize()
public final int getConstantWidth()
public final int getConstantHeight()
public final int getConstantMinimumWidth()
public final int getConstantMinimumHeight()
protected void computeConstantSize()
public final void setEnterFadeDuration(int duration)
public final int getEnterFadeDuration()
public final void setExitFadeDuration(int duration)
public final int getExitFadeDuration()
public final int getOpacity()
public final boolean isStateful()
public void growArray(int oldSize, int newSize)
public boolean canConstantState()
public int addAtlasableBitmaps(Collection<Bitmap> atlasList)
addAtlasableBitmaps
in class Drawable.ConstantState