# CrossfadeDrawable

Summary:[Ctors](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable#pubctors)\|[Methods](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable#pubmethods)\|[Protected Methods](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable#promethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable#inhmethods)  

# CrossfadeDrawable

`
public


class
CrossfadeDrawable
`  
`


``

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


``


implements

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


`

|---|---|-------------------------------------------------|
| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [android.graphics.drawable.Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html) ||
|   | ↳ | android.support.wearable.view.CrossfadeDrawable |

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
consider using[AnimationSet](http://developer.android.com/reference/android/view/animation/AnimationSet.html)instead.

Contains two child drawables and provides methods to directly adjust the blend between the two.

The base layer is always painted fully opaque, and the fading layer is adjusted according to the current progress value.  
**See also:**

- [setBase(Drawable)](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setBase(android.graphics.drawable.Drawable))
- [setFading(Drawable)](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setFading(android.graphics.drawable.Drawable))
- [setProgress(float)](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setProgress(float))

## Summary

|                                                             ### Public constructors                                                              ||
|-----------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[CrossfadeDrawable](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#CrossfadeDrawable())`() ` |

|                                                                                                                                                                                                                                            ### Public methods                                                                                                                                                                                                                                            ||
|-----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void`                                                                                       | ` `[clearColorFilter](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#clearColorFilter())`() `                                                                                                                                                                                                                                                               |
| ` void`                                                                                       | ` `[draw](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#draw(android.graphics.Canvas))`(`[Canvas](http://developer.android.com/reference/android/graphics/Canvas.html)` canvas) `                                                                                                                                                                          |
| ` int`                                                                                        | ` `[getAlpha](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#getAlpha())`() `                                                                                                                                                                                                                                                                               |
| ` `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html) | ` `[getBase](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#getBase())`() `                                                                                                                                                                                                                                                                                 |
| ` int`                                                                                        | ` `[getChangingConfigurations](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#getChangingConfigurations())`() `                                                                                                                                                                                                                                             |
| ` `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html) | ` `[getFading](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#getFading())`() `                                                                                                                                                                                                                                                                             |
| ` int`                                                                                        | ` `[getIntrinsicHeight](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#getIntrinsicHeight())`() `                                                                                                                                                                                                                                                           |
| ` int`                                                                                        | ` `[getIntrinsicWidth](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#getIntrinsicWidth())`() `                                                                                                                                                                                                                                                             |
| ` int`                                                                                        | ` `[getOpacity](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#getOpacity())`() `                                                                                                                                                                                                                                                                           |
| ` void`                                                                                       | ` `[invalidateDrawable](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#invalidateDrawable(android.graphics.drawable.Drawable))`(`[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)` who) `                                                                                                                         |
| ` boolean`                                                                                    | ` `[isStateful](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#isStateful())`() `                                                                                                                                                                                                                                                                           |
| ` void`                                                                                       | ` `[jumpToCurrentState](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#jumpToCurrentState())`() `                                                                                                                                                                                                                                                           |
| ` void`                                                                                       | ` `[scheduleDrawable](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#scheduleDrawable(android.graphics.drawable.Drawable,%20java.lang.Runnable,%20long))`(`[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)` who, `[Runnable](http://developer.android.com/reference/java/lang/Runnable.html)` what, long when) ` |
| ` void`                                                                                       | ` `[setAlpha](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setAlpha(int))`(int alpha) `                                                                                                                                                                                                                                                                   |
| ` void`                                                                                       | ` `[setBase](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setBase(android.graphics.drawable.Drawable))`(`[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)` d) ` Sets the image for the base layer.                                                                                                              |
| ` void`                                                                                       | ` `[setChangingConfigurations](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setChangingConfigurations(int))`(int configs) `                                                                                                                                                                                                                               |
| ` void`                                                                                       | ` `[setColorFilter](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setColorFilter(android.graphics.ColorFilter))`(`[ColorFilter](http://developer.android.com/reference/android/graphics/ColorFilter.html)` cf) `                                                                                                                                           |
| ` void`                                                                                       | ` `[setColorFilter](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setColorFilter(int,%20android.graphics.PorterDuff.Mode))`(int color, `[PorterDuff.Mode](http://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)` mode) `                                                                                                           |
| ` void`                                                                                       | ` `[setDither](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setDither(boolean))`(boolean dither) `                                                                                                                                                                                                                                                        |
| ` void`                                                                                       | ` `[setFading](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setFading(android.graphics.drawable.Drawable))`(`[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)` d) ` Sets the image for the fading layer.                                                                                                        |
| ` void`                                                                                       | ` `[setFilterBitmap](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setFilterBitmap(boolean))`(boolean filter) `                                                                                                                                                                                                                                            |
| ` void`                                                                                       | ` `[setProgress](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#setProgress(float))`(float progress) `                                                                                                                                                                                                                                                      |
| ` void`                                                                                       | ` `[unscheduleDrawable](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#unscheduleDrawable(android.graphics.drawable.Drawable,%20java.lang.Runnable))`(`[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)` who, `[Runnable](http://developer.android.com/reference/java/lang/Runnable.html)` what) `                |

|                                                                                                                   ### Protected methods                                                                                                                    ||
|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` void`    | ` `[onBoundsChange](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#onBoundsChange(android.graphics.Rect))`(`[Rect](http://developer.android.com/reference/android/graphics/Rect.html)` bounds) ` |
| ` boolean` | ` `[onLevelChange](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#onLevelChange(int))`(int level) `                                                                                              |
| ` boolean` | ` `[onStateChange](https://developer.android.com/reference/android/support/wearable/view/CrossfadeDrawable.html#onStateChange(int[]))`(int[] state) `                                                                                          |

| ### Inherited methods |
|-----------------------|---|
| From class` `[android.graphics.drawable.Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)` ` |---------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                                   | ` applyTheme(`[Resources.Theme](http://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                                                | ` canApplyTheme() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                                   | ` clearColorFilter() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` final `[Rect](http://developer.android.com/reference/android/graphics/Rect.html)                                        | ` copyBounds() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` final void`                                                                                                             | ` copyBounds(`[Rect](http://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                | | ` static `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromPath(`[String](http://developer.android.com/reference/java/lang/String.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` static `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromResourceStream(`[Resources](http://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[TypedValue](http://developer.android.com/reference/android/util/TypedValue.html)` arg1, `[InputStream](http://developer.android.com/reference/java/io/InputStream.html)` arg2, `[String](http://developer.android.com/reference/java/lang/String.html)` arg3, `[BitmapFactory.Options](http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html)` arg4) ` | | ` static `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromResourceStream(`[Resources](http://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[TypedValue](http://developer.android.com/reference/android/util/TypedValue.html)` arg1, `[InputStream](http://developer.android.com/reference/java/io/InputStream.html)` arg2, `[String](http://developer.android.com/reference/java/lang/String.html)` arg3) `                                                                                                                     | | ` static `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromStream(`[InputStream](http://developer.android.com/reference/java/io/InputStream.html)` arg0, `[String](http://developer.android.com/reference/java/lang/String.html)` arg1) `                                                                                                                                                                                                                                                                                                                      | | ` static `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXml(`[Resources](http://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[XmlPullParser](http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html)` arg1) `                                                                                                                                                                                                                                                                                              | | ` static `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXml(`[Resources](http://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[XmlPullParser](http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html)` arg1, `[Resources.Theme](http://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg2) `                                                                                                                                                                                   | | ` static `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXmlInner(`[Resources](http://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[XmlPullParser](http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html)` arg1, `[AttributeSet](http://developer.android.com/reference/android/util/AttributeSet.html)` arg2, `[Resources.Theme](http://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg3) `                                                                                | | ` static `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)                      | ` createFromXmlInner(`[Resources](http://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[XmlPullParser](http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html)` arg1, `[AttributeSet](http://developer.android.com/reference/android/util/AttributeSet.html)` arg2) `                                                                                                                                                                                           | | ` abstract void`                                                                                                          | ` draw(`[Canvas](http://developer.android.com/reference/android/graphics/Canvas.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` int`                                                                                                                    | ` getAlpha() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` final `[Rect](http://developer.android.com/reference/android/graphics/Rect.html)                                        | ` getBounds() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[Drawable.Callback](http://developer.android.com/reference/android/graphics/drawable/Drawable.Callback.html)           | ` getCallback() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` int`                                                                                                                    | ` getChangingConfigurations() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` `[ColorFilter](http://developer.android.com/reference/android/graphics/ColorFilter.html)                                | ` getColorFilter() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[Drawable.ConstantState](http://developer.android.com/reference/android/graphics/drawable/Drawable.ConstantState.html) | ` getConstantState() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)                             | ` getCurrent() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[Rect](http://developer.android.com/reference/android/graphics/Rect.html)                                              | ` getDirtyBounds() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                                   | ` getHotspotBounds(`[Rect](http://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() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` Insets`                                                                                                                 | ` getOpticalInsets() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                                   | ` getOutline(`[Outline](http://developer.android.com/reference/android/graphics/Outline.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                          | | ` boolean`                                                                                                                | ` getPadding(`[Rect](http://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                | | ` int[]`                                                                                                                  | ` getState() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` `[Region](http://developer.android.com/reference/android/graphics/Region.html)                                          | ` getTransparentRegion() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` boolean`                                                                                                                | ` hasFocusStateSpecified() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                                   | ` inflate(`[Resources](http://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[XmlPullParser](http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html)` arg1, `[AttributeSet](http://developer.android.com/reference/android/util/AttributeSet.html)` arg2, `[Resources.Theme](http://developer.android.com/reference/android/content/res/Resources.Theme.html)` arg3) `                                                                                           | | ` void`                                                                                                                   | ` inflate(`[Resources](http://developer.android.com/reference/android/content/res/Resources.html)` arg0, `[XmlPullParser](http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html)` arg1, `[AttributeSet](http://developer.android.com/reference/android/util/AttributeSet.html)` arg2) `                                                                                                                                                                                                      | | ` void`                                                                                                                   | ` invalidateSelf() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` boolean`                                                                                                                | ` isAutoMirrored() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` boolean`                                                                                                                | ` isFilterBitmap() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` boolean`                                                                                                                | ` isProjected() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` boolean`                                                                                                                | ` isStateful() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` final boolean`                                                                                                          | ` isVisible() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` void`                                                                                                                   | ` jumpToCurrentState() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` `[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)                             | ` mutate() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                                   | ` onBoundsChange(`[Rect](http://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](http://developer.android.com/reference/java/lang/Runnable.html)` 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](http://developer.android.com/reference/android/graphics/Rect.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` final void`                                                                                                             | ` setCallback(`[Drawable.Callback](http://developer.android.com/reference/android/graphics/drawable/Drawable.Callback.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                                   | ` setChangingConfigurations(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                                   | ` setColorFilter(int arg0, `[PorterDuff.Mode](http://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)` arg1) `                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract void`                                                                                                          | ` setColorFilter(`[ColorFilter](http://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`                                                                                                                   | ` setTintBlendMode(BlendMode arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                                   | ` setTintList(`[ColorStateList](http://developer.android.com/reference/android/content/res/ColorStateList.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                                   | ` setTintMode(`[PorterDuff.Mode](http://developer.android.com/reference/android/graphics/PorterDuff.Mode.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                         | | ` boolean`                                                                                                                | ` setVisible(boolean arg0, boolean arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                                   | ` unscheduleSelf(`[Runnable](http://developer.android.com/reference/java/lang/Runnable.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                           | ||
| From class` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                               | | ` boolean`                                                                         | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                            | ` finalize() `                                                                            | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                            | | ` int`                                                                             | ` hashCode() `                                                                            | | ` final void`                                                                      | ` notify() `                                                                              | | ` final void`                                                                      | ` notifyAll() `                                                                           | | ` `[String](http://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                            | | ` final void`                                                                      | ` wait(long arg0, int arg1) `                                                             | | ` final void`                                                                      | ` wait(long arg0) `                                                                       | | ` final void`                                                                      | ` wait() `                                                                                | ||
| From interface` `[android.graphics.drawable.Drawable.Callback](http://developer.android.com/reference/android/graphics/drawable/Drawable.Callback.html)` ` |------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` invalidateDrawable(`[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0) `                                                                                             | | ` abstract void` | ` scheduleDrawable(`[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0, `[Runnable](http://developer.android.com/reference/java/lang/Runnable.html)` arg1, long arg2) ` | | ` abstract void` | ` unscheduleDrawable(`[Drawable](http://developer.android.com/reference/android/graphics/drawable/Drawable.html)` arg0, `[Runnable](http://developer.android.com/reference/java/lang/Runnable.html)` arg1) `          | ||

## Public constructors

### CrossfadeDrawable

```
public CrossfadeDrawable ()
```

<br />

<br />

## Public methods

### clearColorFilter

```
public void clearColorFilter ()
```

<br />

<br />

### draw

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

<br />

<br />

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

### getAlpha

```
public int getAlpha ()
```

<br />

<br />

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

### getBase

```
public Drawable getBase ()
```

<br />

<br />

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

### getChangingConfigurations

```
public int getChangingConfigurations ()
```

<br />

<br />

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

### getFading

```
public Drawable getFading ()
```

<br />

<br />

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

### getIntrinsicHeight

```
public int getIntrinsicHeight ()
```

<br />

<br />

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

### getIntrinsicWidth

```
public int getIntrinsicWidth ()
```

<br />

<br />

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

### getOpacity

```
public int getOpacity ()
```

<br />

<br />

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

### invalidateDrawable

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

<br />

<br />

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

### isStateful

```
public boolean isStateful ()
```

<br />

<br />

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

### jumpToCurrentState

```
public void jumpToCurrentState ()
```

<br />

<br />

### scheduleDrawable

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

<br />

<br />

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

### setAlpha

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

<br />

<br />

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

### setBase

```
public void setBase (Drawable d)
```

Sets the image for the base layer. This drawable's opacity remains fixed. It's fully visible when progress == 0, and completely obscured when progress == 1.

<br />

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

### setChangingConfigurations

```
public void setChangingConfigurations (int configs)
```

<br />

<br />

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

### setColorFilter

```
public void setColorFilter (ColorFilter cf)
```

<br />

<br />

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

### setColorFilter

```
public void setColorFilter (int color, 
                PorterDuff.Mode mode)
```

<br />

<br />

|            Parameters             ||
|---------|--------------------------|
| `color` | `int` <br />             |
| `mode`  | `PorterDuff.Mode` <br /> |

### setDither

```
public void setDither (boolean dither)
```

<br />

<br />

|         Parameters         ||
|----------|------------------|
| `dither` | `boolean` <br /> |

### setFading

```
public void setFading (Drawable d)
```

Sets the image for the fading layer. This drawable's opacity will vary directly proportionally to the progress value. It's invisible when progress == 0 and fully opaque when progress == 1.

<br />

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

### setFilterBitmap

```
public void setFilterBitmap (boolean filter)
```

<br />

<br />

|         Parameters         ||
|----------|------------------|
| `filter` | `boolean` <br /> |

### setProgress

```
public void setProgress (float progress)
```

<br />

<br />

|         Parameters         ||
|------------|----------------|
| `progress` | `float` <br /> |

### unscheduleDrawable

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

<br />

<br />

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

## Protected methods

### onBoundsChange

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

<br />

<br />

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

### onLevelChange

```
protected boolean onLevelChange (int level)
```

<br />

<br />

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

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

### onStateChange

```
protected boolean onStateChange (int[] state)
```

<br />

<br />

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

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