# DrawableCompat

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1  
Summary:[Methods](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#)  

# DrawableCompat

| 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

final

class
DrawableCompat
`  
`

extends Object


``


`

|---|-----------------------------------------------------|
| java.lang.Object                                       ||
| ↳ | android.support.v4.graphics.drawable.DrawableCompat |

<br />

*** ** * ** ***

Helper for accessing features in[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html).

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                       ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                        ||
|-----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static void`                                                                                                        | ` `[applyTheme](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#applyTheme(android.graphics.drawable.Drawable, android.content.res.Resources.Theme))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable, `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` theme) ` Applies the specified theme to this Drawable and its children.                                                                                                                                                                                                                                                                                                                  |
| ` static boolean`                                                                                                     | ` `[canApplyTheme](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#canApplyTheme(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Whether a theme can be applied to this Drawable and its children.                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` static void`                                                                                                        | ` `[clearColorFilter](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#clearColorFilter(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Removes the color filter from the given drawable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` static int`                                                                                                         | ` `[getAlpha](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#getAlpha(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Get the alpha value of the`drawable`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ` static `[ColorFilter](https://developer.android.com/reference/android/graphics/ColorFilter.html)                    | ` `[getColorFilter](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#getColorFilter(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Returns the current color filter, or`null`if none set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` static int`                                                                                                         | ` `[getLayoutDirection](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#getLayoutDirection(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Returns the resolved layout direction for this Drawable.                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` static void`                                                                                                        | ` `[inflate](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#inflate(android.graphics.drawable.Drawable, android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet, android.content.res.Resources.Theme))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable, `[Resources](https://developer.android.com/reference/android/content/res/Resources.html)` res, XmlPullParser parser, `[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` attrs, `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)` theme) ` Inflate this Drawable from an XML resource optionally styled by a theme. |
| ` static boolean`                                                                                                     | ` `[isAutoMirrored](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#isAutoMirrored(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Tells if this Drawable will be automatically mirrored when its layout direction is RTL right-to-left.                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` static void`                                                                                                        | ` `[jumpToCurrentState](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#jumpToCurrentState(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` *This method was deprecated in API level 27.1.0. Use[jumpToCurrentState()](https://developer.android.com/reference/android/graphics/drawable/Drawable.html#jumpToCurrentState())directly.*                                                                                                                                                                                                                                                                                                                        |
| ` static void`                                                                                                        | ` `[setAutoMirrored](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#setAutoMirrored(android.graphics.drawable.Drawable, boolean))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable, boolean mirrored) ` Set whether this Drawable is automatically mirrored when its layout direction is RTL (right-to left).                                                                                                                                                                                                                                                                                                                                                                                        |
| ` static void`                                                                                                        | ` `[setHotspot](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#setHotspot(android.graphics.drawable.Drawable, float, float))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable, float x, float y) ` Specifies the hotspot's location within the drawable.                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` static void`                                                                                                        | ` `[setHotspotBounds](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#setHotspotBounds(android.graphics.drawable.Drawable, int, int, int, int))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable, int left, int top, int right, int bottom) ` Sets the bounds to which the hotspot is constrained, if they should be different from the drawable bounds.                                                                                                                                                                                                                                                                                                                                              |
| ` static boolean`                                                                                                     | ` `[setLayoutDirection](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#setLayoutDirection(android.graphics.drawable.Drawable, int))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable, int layoutDirection) ` Set the layout direction for this drawable.                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` static void`                                                                                                        | ` `[setTint](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#setTint(android.graphics.drawable.Drawable, int))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable, int tint) ` Specifies a tint for`drawable`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` static void`                                                                                                        | ` `[setTintList](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#setTintList(android.graphics.drawable.Drawable, android.content.res.ColorStateList))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable, `[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html)` tint) ` Specifies a tint for`drawable`as a color state list.                                                                                                                                                                                                                                                                                                                              |
| ` static void`                                                                                                        | ` `[setTintMode](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#setTintMode(android.graphics.drawable.Drawable, android.graphics.PorterDuff.Mode))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable, `[PorterDuff.Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)` tintMode) ` Specifies a tint blending mode for`drawable`.                                                                                                                                                                                                                                                                                                                                    |
| ` static <T extends `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)`> T` | ` `[unwrap](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#unwrap(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Unwrap`drawable`if it is the result of a call to[wrap(Drawable)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#wrap(android.graphics.drawable.Drawable)).                                                                                                                                                                                                                                                                                                                                   |
| ` static `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)                 | ` `[wrap](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#wrap(android.graphics.drawable.Drawable))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` drawable) ` Potentially wrap`drawable`so that it may be used for tinting across the different API levels, via the tinting methods in this class.                                                                                                                                                                                                                                                                                                                                                                                                          |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#)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() `                    | ||

## Public methods

### applyTheme

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

```
void applyTheme (Drawable drawable, 
                Resources.Theme theme)
```

Applies the specified theme to this Drawable and its children.

<br />

|              Parameters              ||
|------------|--------------------------|
| `drawable` | `Drawable` <br />        |
| `theme`    | `Resources.Theme` <br /> |

### canApplyTheme

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

```
boolean canApplyTheme (Drawable drawable)
```

Whether a theme can be applied to this Drawable and its children.

<br />

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

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

### clearColorFilter

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

```
void clearColorFilter (Drawable drawable)
```

Removes the color filter from the given drawable.

<br />

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

### getAlpha

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

```
int getAlpha (Drawable drawable)
```

Get the alpha value of the`drawable`. 0 means fully transparent, 255 means fully opaque.

<br />

|                                   Parameters                                    ||
|------------|---------------------------------------------------------------------|
| `drawable` | `Drawable`: The Drawable against which to invoke the method. <br /> |

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

### getColorFilter

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

```
ColorFilter getColorFilter (Drawable drawable)
```

Returns the current color filter, or`null`if none set.

<br />

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

|                                                                    Returns                                                                     ||
|------------------------------------------------------------------------------------------|------------------------------------------------------|
| [ColorFilter](https://developer.android.com/reference/android/graphics/ColorFilter.html) | the current color filter, or`null`if none set <br /> |

### getLayoutDirection

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

```
int getLayoutDirection (Drawable drawable)
```

Returns the resolved layout direction for this Drawable.

<br />

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

|                                                                                                                               Returns                                                                                                                               ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | One of[LAYOUT_DIRECTION_LTR](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_LTR),[LAYOUT_DIRECTION_RTL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_RTL) <br /> |

**See also:**

- [setLayoutDirection(Drawable, int)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#setLayoutDirection(android.graphics.drawable.Drawable, int))  

### inflate

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

```
void inflate (Drawable drawable, 
                Resources res, 
                XmlPullParser parser, 
                AttributeSet attrs, 
                Resources.Theme theme)
```

Inflate this Drawable from an XML resource optionally styled by a theme.

<br />

|                                     Parameters                                     ||
|------------|------------------------------------------------------------------------|
| `drawable` | `Drawable` <br />                                                      |
| `res`      | `Resources`: Resources used to resolve attribute values <br />         |
| `parser`   | `XmlPullParser`: XML parser from which to inflate this Drawable <br /> |
| `attrs`    | `AttributeSet`: Base set of attribute values <br />                    |
| `theme`    | `Resources.Theme`: Theme to apply, may be null <br />                  |

|                      Throws                      ||
|--------------------------|------------------------|
|                          | XmlPullParserException |
| `IOException`            |                        |
| `XmlPullParserException` |                        |

### isAutoMirrored

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

```
boolean isAutoMirrored (Drawable drawable)
```

Tells if this Drawable will be automatically mirrored when its layout direction is RTL right-to-left. See[LayoutDirection](https://developer.android.com/reference/android/util/LayoutDirection.html).

If running on a pre-[KITKAT](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#KITKAT)device this method returns false.

<br />

|                                   Parameters                                    ||
|------------|---------------------------------------------------------------------|
| `drawable` | `Drawable`: The Drawable against which to invoke the method. <br /> |

|                                         Returns                                         ||
|-----------|------------------------------------------------------------------------------|
| `boolean` | boolean Returns true if this Drawable will be automatically mirrored. <br /> |

### jumpToCurrentState

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

```
void jumpToCurrentState (Drawable drawable)
```

<br />

**This method was deprecated in API level 27.1.0.**   
Use[jumpToCurrentState()](https://developer.android.com/reference/android/graphics/drawable/Drawable.html#jumpToCurrentState())directly.

Call[Drawable.jumpToCurrentState()](https://developer.android.com/reference/android/graphics/drawable/Drawable.html#jumpToCurrentState()).

<br />

|                                   Parameters                                    ||
|------------|---------------------------------------------------------------------|
| `drawable` | `Drawable`: The Drawable against which to invoke the method. <br /> |

### setAutoMirrored

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

```
void setAutoMirrored (Drawable drawable, 
                boolean mirrored)
```

Set whether this Drawable is automatically mirrored when its layout direction is RTL (right-to left). See[LayoutDirection](https://developer.android.com/reference/android/util/LayoutDirection.html).

If running on a pre-[KITKAT](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#KITKAT)device this method does nothing.

<br />

|                                         Parameters                                          ||
|------------|---------------------------------------------------------------------------------|
| `drawable` | `Drawable`: The Drawable against which to invoke the method. <br />             |
| `mirrored` | `boolean`: Set to true if the Drawable should be mirrored, false if not. <br /> |

### setHotspot

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

```
void setHotspot (Drawable drawable, 
                float x, 
                float y)
```

Specifies the hotspot's location within the drawable.

<br />

|                                   Parameters                                    ||
|------------|---------------------------------------------------------------------|
| `drawable` | `Drawable`: The Drawable against which to invoke the method. <br /> |
| `x`        | `float`: The X coordinate of the center of the hotspot <br />       |
| `y`        | `float`: The Y coordinate of the center of the hotspot <br />       |

### setHotspotBounds

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

```
void setHotspotBounds (Drawable drawable, 
                int left, 
                int top, 
                int right, 
                int bottom)
```

Sets the bounds to which the hotspot is constrained, if they should be different from the drawable bounds.

<br />

|                                   Parameters                                    ||
|------------|---------------------------------------------------------------------|
| `drawable` | `Drawable`: The Drawable against which to invoke the method. <br /> |
| `left`     | `int` <br />                                                        |
| `top`      | `int` <br />                                                        |
| `right`    | `int` <br />                                                        |
| `bottom`   | `int` <br />                                                        |

### setLayoutDirection

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

```
boolean setLayoutDirection (Drawable drawable, 
                int layoutDirection)
```

Set the layout direction for this drawable. Should be a resolved layout direction, as the Drawable has no capacity to do the resolution on its own.

<br />

|                                                                                                                                                               Parameters                                                                                                                                                                ||
|-------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `drawable`        | `Drawable` <br />                                                                                                                                                                                                                                                                                                    |
| `layoutDirection` | `int`: the resolved layout direction for the drawable, either[LAYOUT_DIRECTION_LTR](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_LTR)or[LAYOUT_DIRECTION_RTL](https://developer.android.com/reference/android/support/v4/view/ViewCompat#LAYOUT_DIRECTION_RTL) <br /> |

|                                                                            Returns                                                                            ||
|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | `true`if the layout direction change has caused the appearance of the drawable to change such that it needs to be re-drawn,`false`otherwise <br /> |

**See also:**

- [getLayoutDirection(Drawable)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#getLayoutDirection(android.graphics.drawable.Drawable))  

### setTint

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

```
void setTint (Drawable drawable, 
                int tint)
```

Specifies a tint for`drawable`.

<br />

|                                   Parameters                                    ||
|------------|---------------------------------------------------------------------|
| `drawable` | `Drawable`: The Drawable against which to invoke the method. <br /> |
| `tint`     | `int`: Color to use for tinting this drawable <br />                |

### setTintList

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

```
void setTintList (Drawable drawable, 
                ColorStateList tint)
```

Specifies a tint for`drawable`as a color state list.

<br />

|                                                    Parameters                                                     ||
|------------|-------------------------------------------------------------------------------------------------------|
| `drawable` | `Drawable`: The Drawable against which to invoke the method. <br />                                   |
| `tint`     | `ColorStateList`: Color state list to use for tinting this drawable, or null to clear the tint <br /> |

### setTintMode

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

```
void setTintMode (Drawable drawable, 
                PorterDuff.Mode tintMode)
```

Specifies a tint blending mode for`drawable`.

<br />

|                                   Parameters                                    ||
|------------|---------------------------------------------------------------------|
| `drawable` | `Drawable`: The Drawable against which to invoke the method. <br /> |
| `tintMode` | `PorterDuff.Mode`: A Porter-Duff blending mode <br />               |

### unwrap

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

```
T unwrap (Drawable drawable)
```

Unwrap`drawable`if it is the result of a call to[wrap(Drawable)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#wrap(android.graphics.drawable.Drawable)). If the`drawable`is not the result of a call to[wrap(Drawable)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#wrap(android.graphics.drawable.Drawable))then`drawable`is returned as-is.

<br />

|                      Parameters                       ||
|------------|-------------------------------------------|
| `drawable` | `Drawable`: The drawable to unwrap <br /> |

|                                                                          Returns                                                                           ||
|-----|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| `T` | the unwrapped[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)or`drawable`if it hasn't been wrapped. <br /> |

**See also:**

- [wrap(Drawable)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#wrap(android.graphics.drawable.Drawable))  

### wrap

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

```
Drawable wrap (Drawable drawable)
```

Potentially wrap`drawable`so that it may be used for tinting across the different API levels, via the tinting methods in this class.

If the given drawable is wrapped, we will copy over certain state over to the wrapped drawable, such as its bounds, level, visibility and state.

You must use the result of this call. If the given drawable is being used by a view (as its background for instance), you must replace the original drawable with the result of this call:  

```
 Drawable bg = DrawableCompat.wrap(view.getBackground());
 // Need to set the background with the wrapped drawable
 view.setBackground(bg);

 // You can now tint the drawable
 DrawableCompat.setTint(bg, ...);
 
```

If you need to get hold of the original[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)again, you can use the value returned from[unwrap(Drawable)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#unwrap(android.graphics.drawable.Drawable)).

<br />

<br />

|                       Parameters                       ||
|------------|--------------------------------------------|
| `drawable` | `Drawable`: The Drawable to process <br /> |

|                                                                            Returns                                                                            ||
|---------------------------------------------------------------------------------------------|------------------------------------------------------------------|
| [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) | A drawable capable of being tinted across all API levels. <br /> |

**See also:**

- [setTint(Drawable, int)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#setTint(android.graphics.drawable.Drawable, int))
- [setTintList(Drawable, ColorStateList)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#setTintList(android.graphics.drawable.Drawable, android.content.res.ColorStateList))
- [setTintMode(Drawable, PorterDuff.Mode)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#setTintMode(android.graphics.drawable.Drawable, android.graphics.PorterDuff.Mode))
- [unwrap(Drawable)](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat#unwrap(android.graphics.drawable.Drawable))  
-

  ## Classes

  - [DrawableCompat](https://developer.android.com/reference/android/support/v4/graphics/drawable/DrawableCompat)
  - [IconCompat](https://developer.android.com/reference/android/support/v4/graphics/drawable/IconCompat)
  - [RoundedBitmapDrawable](https://developer.android.com/reference/android/support/v4/graphics/drawable/RoundedBitmapDrawable)
  - [RoundedBitmapDrawableFactory](https://developer.android.com/reference/android/support/v4/graphics/drawable/RoundedBitmapDrawableFactory)