DrawableContainerState
abstract class DrawableContainerState : Drawable.ConstantState
kotlin.Any | ||
↳ | android.graphics.drawable.Drawable.ConstantState | |
↳ | android.graphics.drawable.DrawableContainer.DrawableContainerState |
A ConstantState that can contain several Drawable
s. 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! | |
Int | |
Array<Drawable!>! | |
Int | |
Int | |
Int | |
Rect! | |
Int | |
Int | |
Int | |
Int | |
open Unit | |
Boolean | |
Boolean | |
Unit |
setConstantSize(constant: Boolean) |
Unit |
setEnterFadeDuration(duration: Int) |
Unit |
setExitFadeDuration(duration: Int) |
Unit |
setVariablePadding(variable: Boolean) 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
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 |
getChangingConfigurations
open fun getChangingConfigurations(): Int
Return a bit mask of configuration changes that will impact this drawable (and thus require completely reloading it).
setVariablePadding
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.