# CompositeDrawable

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)   
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1  
Summary: [Nested Classes](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#nestedclasses) \| [Ctors](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#pubctors) \| [Methods](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#pubmethods) \| [Protected Methods](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#promethods) \| [Inherited Methods](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#inhmethods) \| [\[Expand All\]](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#)  

# CompositeDrawable

| This package is part of the Android [support library](https://developer.android.com/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](https://developer.android.com/jetpack/androidx) which is part of [Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](https://developer.android.com/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class
| mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).


`
public


class
CompositeDrawable
`


`


`

`

extends `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)`


`

`


implements

`[Drawable.Callback](https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback.html)`


`

|---|---|---------------------------------------------------------|
| java.lang.Object                                              |||
| ↳ | [android.graphics.drawable.Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) ||
|   | ↳ | android.support.v17.leanback.graphics.CompositeDrawable |

<br />

*** ** * ** ***

Generic drawable class that can be composed of multiple children. Whenever the bounds changes
for this class, it updates those of its children.

## Summary

|                                                                                                                                                                         ### Nested classes                                                                                                                                                                         ||
|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [CompositeDrawable.ChildDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable.ChildDrawable) Wrapper class holding a drawable object and [BoundsRule](https://developer.android.com/reference/android/support/v17/leanback/graphics/BoundsRule) to update drawable bounds when parent bound changes. |

|                                                               ### Public constructors                                                               ||
|--------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[CompositeDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#CompositeDrawable())`() ` |

|                                                                                                                                                                                                                                            ### Public methods                                                                                                                                                                                                                                            ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void`                                                                                                                                             | ` `[addChildDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#addChildDrawable(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Adds the supplied region.                                    |
| ` void`                                                                                                                                             | ` `[draw](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#draw(android.graphics.Canvas))`(`[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` canvas) `                                                                                                                |
| ` int`                                                                                                                                              | ` `[getAlpha](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#getAlpha())`() `                                                                                                                                                                                                                      |
| ` `[CompositeDrawable.ChildDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable.ChildDrawable) | ` `[getChildAt](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#getChildAt(int))`(int index) ` Returns the [CompositeDrawable.ChildDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable.ChildDrawable) at the given index.                     |
| ` int`                                                                                                                                              | ` `[getChildCount](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#getChildCount())`() ` Returns the total number of children.                                                                                                                                                                      |
| ` `[Drawable.ConstantState](https://developer.android.com/reference/android/graphics/drawable/Drawable.ConstantState.html)                          | ` `[getConstantState](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#getConstantState())`() `                                                                                                                                                                                                      |
| ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                                                      | ` `[getDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#getDrawable(int))`(int index) ` Returns the [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) for the given index.                                                                       |
| ` int`                                                                                                                                              | ` `[getOpacity](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#getOpacity())`() `                                                                                                                                                                                                                  |
| ` void`                                                                                                                                             | ` `[invalidateDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#invalidateDrawable(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` who) `                                                               |
| ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                                                      | ` `[mutate](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#mutate())`() `                                                                                                                                                                                                                          |
| ` void`                                                                                                                                             | ` `[removeChild](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#removeChild(int))`(int index) ` Removes the child corresponding to the given index.                                                                                                                                                |
| ` void`                                                                                                                                             | ` `[removeDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#removeDrawable(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Removes the given region.                                        |
| ` void`                                                                                                                                             | ` `[scheduleDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#scheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable, long))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` who, Runnable what, long when) `               |
| ` void`                                                                                                                                             | ` `[setAlpha](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#setAlpha(int))`(int alpha) `                                                                                                                                                                                                          |
| ` void`                                                                                                                                             | ` `[setChildDrawableAt](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#setChildDrawableAt(int, android.graphics.drawable.Drawable))`(int index, `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Sets the supplied region at given index. |
| ` void`                                                                                                                                             | ` `[setColorFilter](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#setColorFilter(android.graphics.ColorFilter))`(`[ColorFilter](https://developer.android.com/reference/android/graphics/ColorFilter.html)` colorFilter) `                                                                        |
| ` void`                                                                                                                                             | ` `[unscheduleDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#unscheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` who, Runnable what) `                            |

|                                                                                                                    ### Protected methods                                                                                                                    ||
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void` | ` `[onBoundsChange](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#onBoundsChange(android.graphics.Rect))`(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` bounds) ` |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#)From class ` `[android.graphics.drawable.Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` ` |----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                                    | ` applyTheme(`[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg0) `                                                                                                                                                                                                                                                  | | ` boolean`                                                                                                                 | ` canApplyTheme() `                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                                    | ` clearColorFilter() `                                                                                                                                                                                                                                                                                                                                                      | | ` final `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)                                        | ` copyBounds() `                                                                                                                                                                                                                                                                                                                                                            | | ` final void`                                                                                                              | ` copyBounds(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                           | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromPath(String arg0) `                                                                                                                                                                                                                                                                                                                                             | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromResourceStream(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[TypedValue](https://developer.android.com/reference/android/util/TypedValue.html)` arg1, InputStream arg2, String arg3, `[BitmapFactory.Options](https://developer.android.com/reference/android/graphics/BitmapFactory.Options.html)` arg4) ` | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromResourceStream(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[TypedValue](https://developer.android.com/reference/android/util/TypedValue.html)` arg1, InputStream arg2, String arg3) `                                                                                                                      | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromStream(InputStream arg0, String arg1) `                                                                                                                                                                                                                                                                                                                         | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXml(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1) `                                                                                                                                                                                                                                       | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXml(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1, `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg2) `                                                                                                                           | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXmlInner(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg2, `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg3) `                       | | ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXmlInner(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg2) `                                                                                                                                   | | ` abstract void`                                                                                                           | ` draw(`[Canvas](https://developer.android.com/reference/android/graphics/Canvas.html)` arg0) `                                                                                                                                                                                                                                                                             | | ` int`                                                                                                                     | ` getAlpha() `                                                                                                                                                                                                                                                                                                                                                              | | ` final `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)                                        | ` getBounds() `                                                                                                                                                                                                                                                                                                                                                             | | ` `[Drawable.Callback](https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback.html)           | ` getCallback() `                                                                                                                                                                                                                                                                                                                                                           | | ` int`                                                                                                                     | ` getChangingConfigurations() `                                                                                                                                                                                                                                                                                                                                             | | ` `[ColorFilter](https://developer.android.com/reference/android/graphics/ColorFilter.html)                                | ` getColorFilter() `                                                                                                                                                                                                                                                                                                                                                        | | ` `[Drawable.ConstantState](https://developer.android.com/reference/android/graphics/drawable/Drawable.ConstantState.html) | ` getConstantState() `                                                                                                                                                                                                                                                                                                                                                      | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                             | ` getCurrent() `                                                                                                                                                                                                                                                                                                                                                            | | ` `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)                                              | ` getDirtyBounds() `                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                                    | ` getHotspotBounds(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                     | | ` int`                                                                                                                     | ` getIntrinsicHeight() `                                                                                                                                                                                                                                                                                                                                                    | | ` int`                                                                                                                     | ` getIntrinsicWidth() `                                                                                                                                                                                                                                                                                                                                                     | | ` int`                                                                                                                     | ` getLayoutDirection() `                                                                                                                                                                                                                                                                                                                                                    | | ` final int`                                                                                                               | ` getLevel() `                                                                                                                                                                                                                                                                                                                                                              | | ` int`                                                                                                                     | ` getMinimumHeight() `                                                                                                                                                                                                                                                                                                                                                      | | ` int`                                                                                                                     | ` getMinimumWidth() `                                                                                                                                                                                                                                                                                                                                                       | | ` abstract int`                                                                                                            | ` getOpacity() `                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                                    | ` getOutline(`[Outline](https://developer.android.com/reference/android/graphics/Outline.html)` arg0) `                                                                                                                                                                                                                                                                     | | ` boolean`                                                                                                                 | ` getPadding(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                           | | ` int[]`                                                                                                                   | ` getState() `                                                                                                                                                                                                                                                                                                                                                              | | ` `[Region](https://developer.android.com/reference/android/graphics/Region.html)                                          | ` getTransparentRegion() `                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                                    | ` inflate(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg2, `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg3) `                                  | | ` void`                                                                                                                    | ` inflate(`[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` arg0, XmlPullParser arg1, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg2) `                                                                                                                                              | | ` void`                                                                                                                    | ` invalidateSelf() `                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                 | ` isAutoMirrored() `                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                 | ` isFilterBitmap() `                                                                                                                                                                                                                                                                                                                                                        | | ` boolean`                                                                                                                 | ` isStateful() `                                                                                                                                                                                                                                                                                                                                                            | | ` final boolean`                                                                                                           | ` isVisible() `                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                                    | ` jumpToCurrentState() `                                                                                                                                                                                                                                                                                                                                                    | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                             | ` mutate() `                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                                    | ` onBoundsChange(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                                 | ` onLayoutDirectionChanged(int arg0) `                                                                                                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                 | ` onLevelChange(int arg0) `                                                                                                                                                                                                                                                                                                                                                 | | ` boolean`                                                                                                                 | ` onStateChange(int[] arg0) `                                                                                                                                                                                                                                                                                                                                               | | ` static int`                                                                                                              | ` resolveOpacity(int arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                                    | ` scheduleSelf(Runnable arg0, long arg1) `                                                                                                                                                                                                                                                                                                                                  | | ` abstract void`                                                                                                           | ` setAlpha(int arg0) `                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                                    | ` setAutoMirrored(boolean arg0) `                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                                    | ` setBounds(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                                    | ` setBounds(`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                            | | ` final void`                                                                                                              | ` setCallback(`[Drawable.Callback](https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback.html)` arg0) `                                                                                                                                                                                                                                       | | ` void`                                                                                                                    | ` setChangingConfigurations(int arg0) `                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                                    | ` setColorFilter(int arg0, `[PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)` arg1) `                                                                                                                                                                                                                                       | | ` abstract void`                                                                                                           | ` setColorFilter(`[ColorFilter](https://developer.android.com/reference/android/graphics/ColorFilter.html)` arg0) `                                                                                                                                                                                                                                                         | | ` void`                                                                                                                    | ` setDither(boolean arg0) `                                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                                                    | ` setFilterBitmap(boolean arg0) `                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                                    | ` setHotspot(float arg0, float arg1) `                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                                    | ` setHotspotBounds(int arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                                                                                                                                | | ` final boolean`                                                                                                           | ` setLayoutDirection(int arg0) `                                                                                                                                                                                                                                                                                                                                            | | ` final boolean`                                                                                                           | ` setLevel(int arg0) `                                                                                                                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                 | ` setState(int[] arg0) `                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                                    | ` setTint(int arg0) `                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                                    | ` setTintList(`[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html)` arg0) `                                                                                                                                                                                                                                                   | | ` void`                                                                                                                    | ` setTintMode(`[PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)` arg0) `                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                                 | ` setVisible(boolean arg0, boolean arg1) `                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                                    | ` unscheduleSelf(Runnable arg0) `                                                                                                                                                                                                                                                                                                                                           | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#)From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable#)From interface ` `[android.graphics.drawable.Drawable.Callback](https://developer.android.com/reference/android/graphics/drawable/Drawable.Callback.html)` ` |------------------|----------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` invalidateDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0) `                         | | ` abstract void` | ` scheduleDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0, Runnable arg1, long arg2) ` | | ` abstract void` | ` unscheduleDrawable(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0, Runnable arg1) `          | ||

## Public constructors

### CompositeDrawable

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
CompositeDrawable ()
```

<br />

<br />

## Public methods

### addChildDrawable

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void addChildDrawable (Drawable drawable)
```

Adds the supplied region.

<br />

|          Parameters           ||
|------------|-------------------|
| `drawable` | `Drawable` <br /> |

### draw

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void draw (Canvas canvas)
```

<br />

<br />

|        Parameters         ||
|----------|-----------------|
| `canvas` | `Canvas` <br /> |

### getAlpha

```
int getAlpha ()
```

<br />

<br />

|                              Returns                              ||
|-------|------------------------------------------------------------|
| `int` | Alpha value between 0(inclusive) and 255(inclusive) <br /> |

### getChildAt

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
CompositeDrawable.ChildDrawable getChildAt (int index)
```

Returns the [CompositeDrawable.ChildDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable.ChildDrawable) at the given index.

<br />

|      Parameters       ||
|---------|--------------|
| `index` | `int` <br /> |

|                                                                         Returns                                                                          ||
|--------------------------------------------------------------------------------------------------------------------------------------------------|--------|
| [CompositeDrawable.ChildDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable.ChildDrawable) | <br /> |

### getChildCount

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getChildCount ()
```

Returns the total number of children.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getConstantState

```
Drawable.ConstantState getConstantState ()
```

<br />

<br />

|                                                             Returns                                                             ||
|-------------------------------------------------------------------------------------------------------------------------|--------|
| [Drawable.ConstantState](https://developer.android.com/reference/android/graphics/drawable/Drawable.ConstantState.html) | <br /> |

### getDrawable

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Drawable getDrawable (int index)
```

Returns the [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) for the given index.

<br />

|      Parameters       ||
|---------|--------------|
| `index` | `int` <br /> |

|                                               Returns                                               ||
|---------------------------------------------------------------------------------------------|--------|
| [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) | <br /> |

### getOpacity

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getOpacity ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### invalidateDrawable

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void invalidateDrawable (Drawable who)
```

<br />

<br />

|        Parameters        ||
|-------|-------------------|
| `who` | `Drawable` <br /> |

### mutate

```
Drawable mutate ()
```

<br />

<br />

|                                               Returns                                               ||
|---------------------------------------------------------------------------------------------|--------|
| [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) | <br /> |

### removeChild

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void removeChild (int index)
```

Removes the child corresponding to the given index.

<br />

|      Parameters       ||
|---------|--------------|
| `index` | `int` <br /> |

### removeDrawable

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void removeDrawable (Drawable drawable)
```

Removes the given region.

<br />

|          Parameters           ||
|------------|-------------------|
| `drawable` | `Drawable` <br /> |

### scheduleDrawable

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void scheduleDrawable (Drawable who, 
                Runnable what, 
                long when)
```

<br />

<br />

|        Parameters         ||
|--------|-------------------|
| `who`  | `Drawable` <br /> |
| `what` | `Runnable` <br /> |
| `when` | `long` <br />     |

### setAlpha

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setAlpha (int alpha)
```

<br />

<br />

|      Parameters       ||
|---------|--------------|
| `alpha` | `int` <br /> |

### setChildDrawableAt

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setChildDrawableAt (int index, 
                Drawable drawable)
```

Sets the supplied region at given index.

<br />

|          Parameters           ||
|------------|-------------------|
| `index`    | `int` <br />      |
| `drawable` | `Drawable` <br /> |

### setColorFilter

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setColorFilter (ColorFilter colorFilter)
```

<br />

<br />

|             Parameters              ||
|---------------|----------------------|
| `colorFilter` | `ColorFilter` <br /> |

### unscheduleDrawable

added in [version 25.4.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void unscheduleDrawable (Drawable who, 
                Runnable what)
```

<br />

<br />

|        Parameters         ||
|--------|-------------------|
| `who`  | `Drawable` <br /> |
| `what` | `Runnable` <br /> |

## Protected methods

### onBoundsChange

```
void onBoundsChange (Rect bounds)
```

<br />

<br />

|       Parameters        ||
|----------|---------------|
| `bounds` | `Rect` <br /> |

-

  ## Classes

  - [BoundsRule](https://developer.android.com/reference/android/support/v17/leanback/graphics/BoundsRule)
  - [BoundsRule.ValueRule](https://developer.android.com/reference/android/support/v17/leanback/graphics/BoundsRule.ValueRule)
  - [ColorFilterCache](https://developer.android.com/reference/android/support/v17/leanback/graphics/ColorFilterCache)
  - [ColorFilterDimmer](https://developer.android.com/reference/android/support/v17/leanback/graphics/ColorFilterDimmer)
  - [ColorOverlayDimmer](https://developer.android.com/reference/android/support/v17/leanback/graphics/ColorOverlayDimmer)
  - [CompositeDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable)
  - [CompositeDrawable.ChildDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/CompositeDrawable.ChildDrawable)
  - [FitWidthBitmapDrawable](https://developer.android.com/reference/android/support/v17/leanback/graphics/FitWidthBitmapDrawable)