Class DrawableContainer.DrawableContainerState
java.lang.Object
icyllis.modernui.graphics.drawable.Drawable.ConstantState
icyllis.modernui.graphics.drawable.DrawableContainer.DrawableContainerState
- Enclosing class:
DrawableContainer
protected abstract static class DrawableContainer.DrawableContainerState
extends Drawable.ConstantState
A ConstantState that can contain several
Drawables.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDrawableContainerState(DrawableContainer.DrawableContainerState orig, DrawableContainer owner, Resources res) -
Method Summary
Modifier and TypeMethodDescriptionfinal intAdds the drawable to the end of the list of contained drawables.booleanprotected voidfinal DrawablegetChild(int index) final intfinal Drawable[]final intfinal intfinal intfinal Rectfinal intfinal intfinal intvoidgrowArray(int oldSize, int newSize) final booleanfinal booleanfinal voidsetConstantSize(boolean constant) final voidsetEnterFadeDuration(int duration) final voidsetExitFadeDuration(int duration) final voidsetVariablePadding(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).Methods inherited from class icyllis.modernui.graphics.drawable.Drawable.ConstantState
canApplyTheme, getChangingConfigurations, newDrawable, newDrawable
-
Constructor Details
-
DrawableContainerState
protected DrawableContainerState(@Nullable DrawableContainer.DrawableContainerState orig, DrawableContainer owner, Resources res)
-
-
Method Details
-
addChild
Adds the drawable to the end of the list of contained drawables.- Parameters:
dr- the drawable to add- Returns:
- the position of the drawable within the container
-
getChildCount
public final int getChildCount() -
getChildren
-
getChild
-
setVariablePadding
public 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). Default value is false. -
getConstantPadding
-
setConstantSize
public final void setConstantSize(boolean constant) -
isConstantSize
public final boolean isConstantSize() -
getConstantWidth
public final int getConstantWidth() -
getConstantHeight
public final int getConstantHeight() -
getConstantMinimumWidth
public final int getConstantMinimumWidth() -
getConstantMinimumHeight
public final int getConstantMinimumHeight() -
computeConstantSize
protected void computeConstantSize() -
setEnterFadeDuration
public final void setEnterFadeDuration(int duration) -
getEnterFadeDuration
public final int getEnterFadeDuration() -
setExitFadeDuration
public final void setExitFadeDuration(int duration) -
getExitFadeDuration
public final int getExitFadeDuration() -
isStateful
public final boolean isStateful() -
growArray
public void growArray(int oldSize, int newSize) -
canConstantState
public boolean canConstantState()
-