# DrawableContainer.DrawableContainerState

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# DrawableContainerState

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/graphics/drawable/DrawableContainer.DrawableContainerState "View this page in Java")  

```
abstract class DrawableContainerState : Drawable.ConstantState
```

|---|---|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                                              |||
| ↳ | [android.graphics.drawable.Drawable.ConstantState](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.ConstantState)                                         ||
|   | ↳ | [android.graphics.drawable.DrawableContainer.DrawableContainerState](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#) |

A ConstantState that can contain several [Drawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable)s. This class was made public to enable testing, and its visibility may change in a future release.

## Summary

|                                                                                                                                                                                                                                                                                                            Public methods                                                                                                                                                                                                                                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [addChild](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#addChild(android.graphics.drawable.Drawable))`(`dr:` `[Drawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable)!`)` Adds the drawable to the end of the list of contained drawables.                                                                                             |
| open [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                           | [canApplyTheme](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#canApplyTheme())`()` <br />                                                                                                                                                                                                                                                                                     |
| open [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                           | [canConstantState](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#canConstantState())`()` <br />                                                                                                                                                                                                                                                                               |
| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                   | [getChangingConfigurations](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getChangingConfigurations())`()` Return a bit mask of configuration changes that will impact this drawable (and thus require completely reloading it).                                                                                                                                              |
| [Drawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable)!                                                                                    | [getChild](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getChild(kotlin.Int))`(`index:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />                                                                                                                                                                                                |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getChildCount](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getChildCount())`()` <br />                                                                                                                                                                                                                                                                                     |
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[Drawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable)!\>! | [getChildren](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getChildren())`()` <br />                                                                                                                                                                                                                                                                                         |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getConstantHeight](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getConstantHeight())`()` <br />                                                                                                                                                                                                                                                                             |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getConstantMinimumHeight](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getConstantMinimumHeight())`()` <br />                                                                                                                                                                                                                                                               |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getConstantMinimumWidth](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getConstantMinimumWidth())`()` <br />                                                                                                                                                                                                                                                                 |
| [Rect](https://developer.android.com/reference/kotlin/android/graphics/Rect.html#)!                                                                                               | [getConstantPadding](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getConstantPadding())`()` <br />                                                                                                                                                                                                                                                                           |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getConstantWidth](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getConstantWidth())`()` <br />                                                                                                                                                                                                                                                                               |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getEnterFadeDuration](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getEnterFadeDuration())`()` <br />                                                                                                                                                                                                                                                                       |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getExitFadeDuration](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getExitFadeDuration())`()` <br />                                                                                                                                                                                                                                                                         |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                        | [getOpacity](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#getOpacity())`()` <br />                                                                                                                                                                                                                                                                                           |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                 | [growArray](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#growArray(kotlin.Int,%20kotlin.Int))`(`oldSize:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `newSize:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />                                                                                     |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isConstantSize](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#isConstantSize())`()` <br />                                                                                                                                                                                                                                                                                   |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                | [isStateful](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#isStateful())`()` <br />                                                                                                                                                                                                                                                                                           |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                      | [setConstantSize](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#setConstantSize(kotlin.Boolean))`(`constant:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br />                                                                                                                                                                   |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                      | [setEnterFadeDuration](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#setEnterFadeDuration(kotlin.Int))`(`duration:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />                                                                                                                                                                     |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                      | [setExitFadeDuration](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#setExitFadeDuration(kotlin.Int))`(`duration:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` <br />                                                                                                                                                                       |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                      | [setVariablePadding](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#setVariablePadding(kotlin.Boolean))`(`variable:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` 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](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [computeConstantSize](https://developer.android.com/reference/kotlin/android/graphics/drawable/DrawableContainer.DrawableContainerState#computeConstantSize())`()` <br /> |

| Inherited functions ||
|---|---|
| From class [ConstantState](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.ConstantState) |-----------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Drawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable) | [newDrawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.ConstantState#newDrawable())`()` Creates a new Drawable instance from its constant state. **Note:** Using this method means density-dependent properties, such as pixel dimensions or bitmap images, will not be updated to match the density of the target display. To ensure correct scaling, use [newDrawable(android.content.res.Resources)](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.ConstantState#newDrawable(android.content.res.Resources)) instead to provide an appropriate Resources object. <br />                                                                                                                                                                                                                                    | | [Drawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable) | [newDrawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.ConstantState#newDrawable(android.content.res.Resources))`(`res:` `[Resources](https://developer.android.com/reference/kotlin/android/content/res/Resources.html#)?`)` Creates a new Drawable instance from its constant state using the specified resources. This method should be implemented for drawables that have density-dependent properties. The default implementation for this method calls through to [newDrawable()](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.ConstantState#newDrawable()). <br />                                                                                                                                                                                                                                   | | [Drawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable) | [newDrawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.ConstantState#newDrawable(android.content.res.Resources,%20android.content.res.Resources.Theme))`(`res:` `[Resources](https://developer.android.com/reference/kotlin/android/content/res/Resources.html#)?`, `theme:` `[Resources.Theme](https://developer.android.com/reference/kotlin/android/content/res/Resources.Theme.html#)?`)` Creates a new Drawable instance from its constant state using the specified resources and theme. This method should be implemented for drawables that have theme-dependent properties. The default implementation for this method calls through to [newDrawable(android.content.res.Resources)](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.ConstantState#newDrawable(android.content.res.Resources)). <br /> | ||

## Public methods

### addChild

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun addChild(dr: Drawable!): Int
```

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

|                                                        Parameters                                                         ||
|------|---------------------------------------------------------------------------------------------------------------------|
| `dr` | [Drawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable)!: the drawable to add |

|                                                            Return                                                             ||
|----------------------------------------------------------------------------|---------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the position of the drawable within the container |

### canApplyTheme

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun canApplyTheme(): Boolean
```  

### canConstantState

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun canConstantState(): Boolean
```  

### getChangingConfigurations

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getChangingConfigurations(): Int
```

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

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Return                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ||
|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | Value is either `0` or a combination of [android.content.pm.ActivityInfo#CONFIG_MCC](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_MCC:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_MNC](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_MNC:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_LOCALE](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_LOCALE:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_TOUCHSCREEN](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_TOUCHSCREEN:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_KEYBOARD](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_KEYBOARD:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_KEYBOARD_HIDDEN](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_KEYBOARD_HIDDEN:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_NAVIGATION](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_NAVIGATION:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_ORIENTATION](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_ORIENTATION:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_SCREEN_LAYOUT](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_SCREEN_LAYOUT:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_UI_MODE](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_UI_MODE:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_SCREEN_SIZE](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_SCREEN_SIZE:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_SMALLEST_SCREEN_SIZE](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_SMALLEST_SCREEN_SIZE:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_DENSITY](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_DENSITY:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_LAYOUT_DIRECTION](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_LAYOUT_DIRECTION:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_COLOR_MODE](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_COLOR_MODE:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_FONT_SCALE](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_FONT_SCALE:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_GRAMMATICAL_GENDER](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_GRAMMATICAL_GENDER:kotlin.Int), [android.content.pm.ActivityInfo#CONFIG_FONT_WEIGHT_ADJUSTMENT](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_FONT_WEIGHT_ADJUSTMENT:kotlin.Int), android.content.pm.ActivityInfo.CONFIG_WINDOW_CONFIGURATION, [android.content.pm.ActivityInfo#CONFIG_ASSETS_PATHS](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_ASSETS_PATHS:kotlin.Int), and [android.content.pm.ActivityInfo#CONFIG_RESOURCES_UNUSED](https://developer.android.com/reference/kotlin/android/content/pm/ActivityInfo.html#CONFIG_RESOURCES_UNUSED:kotlin.Int) |

### getChild

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getChild(index: Int): Drawable!
```  

### getChildCount

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getChildCount(): Int
```  

### getChildren

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getChildren(): Array<Drawable!>!
```  

### getConstantHeight

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getConstantHeight(): Int
```  

### getConstantMinimumHeight

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getConstantMinimumHeight(): Int
```  

### getConstantMinimumWidth

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getConstantMinimumWidth(): Int
```  

### getConstantPadding

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getConstantPadding(): Rect!
```  

### getConstantWidth

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getConstantWidth(): Int
```  

### getEnterFadeDuration

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getEnterFadeDuration(): Int
```  

### getExitFadeDuration

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getExitFadeDuration(): Int
```  

### getOpacity

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getOpacity(): Int
```  

### growArray

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

### isConstantSize

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun isConstantSize(): Boolean
```  

### isStateful

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun isStateful(): Boolean
```  

### setConstantSize

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setConstantSize(constant: Boolean): Unit
```  

### setEnterFadeDuration

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setEnterFadeDuration(duration: Int): Unit
```  

### setExitFadeDuration

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun setExitFadeDuration(duration: Int): Unit
```  

### setVariablePadding

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
protected open fun computeConstantSize(): Unit
```