Added in API level 1

DrawableContainerState


abstract class DrawableContainerState : Drawable.ConstantState
kotlin.Any
   ↳ android.graphics.drawable.Drawable.ConstantState
   ↳ android.graphics.drawable.DrawableContainer.DrawableContainerState

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
Int

Adds the drawable to the end of the list of contained drawables.

open Boolean

open Boolean

open Int

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

Drawable!
getChild(index: Int)

Int

Array<Drawable!>!

Int

Int

Int

Rect!

Int

Int

Int

Int

open Unit
growArray(oldSize: Int, newSize: Int)

Boolean

Boolean

Unit

Unit

Unit

Unit

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
open Unit

Inherited functions

Public methods

addChild

Added in API level 1
fun addChild(dr: Drawable!): Int

Adds the drawable to the end of the list of contained drawables.

Parameters
dr Drawable!: the drawable to add
Return
Int the position of the drawable within the container

canApplyTheme

Added in API level 21
open fun canApplyTheme(): Boolean

canConstantState

Added in API level 1
open fun canConstantState(): Boolean

getChild

Added in API level 19
fun getChild(index: Int): Drawable!

getChildCount

Added in API level 1
fun getChildCount(): Int

getChildren

Added in API level 1
fun getChildren(): Array<Drawable!>!

getConstantHeight

Added in API level 1
fun getConstantHeight(): Int

getConstantMinimumHeight

Added in API level 1
fun getConstantMinimumHeight(): Int

getConstantMinimumWidth

Added in API level 1
fun getConstantMinimumWidth(): Int

getConstantPadding

Added in API level 1
fun getConstantPadding(): Rect!

getConstantWidth

Added in API level 1
fun getConstantWidth(): Int

getEnterFadeDuration

Added in API level 11
fun getEnterFadeDuration(): Int

getExitFadeDuration

Added in API level 11
fun getExitFadeDuration(): Int

getOpacity

Added in API level 1
fun getOpacity(): Int

growArray

Added in API level 1
open fun growArray(
    oldSize: Int,
    newSize: Int
): Unit

isConstantSize

Added in API level 1
fun isConstantSize(): Boolean

isStateful

Added in API level 1
fun isStateful(): Boolean

setConstantSize

Added in API level 1
fun setConstantSize(constant: Boolean): Unit

setEnterFadeDuration

Added in API level 11
fun setEnterFadeDuration(duration: Int): Unit

setExitFadeDuration

Added in API level 11
fun setExitFadeDuration(duration: Int): Unit

setVariablePadding

Added in API level 1
fun setVariablePadding(variable: Boolean): Unit

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

computeConstantSize

Added in API level 11
protected open fun computeConstantSize(): Unit