# Animatable

Added in[API level 4](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Methods](https://developer.android.com/reference/android/graphics/drawable/Animatable#pubmethods)  

# Animatable

*** ** * ** ***

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

`
public


interface
Animatable
`  
`


`

|--------------------------------------|
| android.graphics.drawable.Animatable |

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known indirect subclasses [Animatable2](https://developer.android.com/reference/android/graphics/drawable/Animatable2),[AnimatedImageDrawable](https://developer.android.com/reference/android/graphics/drawable/AnimatedImageDrawable),[AnimatedVectorDrawable](https://developer.android.com/reference/android/graphics/drawable/AnimatedVectorDrawable),[AnimationDrawable](https://developer.android.com/reference/android/graphics/drawable/AnimationDrawable) |--------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Animatable2](https://developer.android.com/reference/android/graphics/drawable/Animatable2)                       | Abstract class that drawables supporting animations and callbacks should extend.                                                                                                                                                                                                                                                                    | | [AnimatedImageDrawable](https://developer.android.com/reference/android/graphics/drawable/AnimatedImageDrawable)   | [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable)for drawing animated images (like GIF).                                                                                                                                                                                                                       | | [AnimatedVectorDrawable](https://developer.android.com/reference/android/graphics/drawable/AnimatedVectorDrawable) | This class animates properties of a[VectorDrawable](https://developer.android.com/reference/android/graphics/drawable/VectorDrawable)with animations defined using[ObjectAnimator](https://developer.android.com/reference/android/animation/ObjectAnimator)or[AnimatorSet](https://developer.android.com/reference/android/animation/AnimatorSet). | | [AnimationDrawable](https://developer.android.com/reference/android/graphics/drawable/AnimationDrawable)           | An object used to create frame-by-frame animations, defined by a series of Drawable objects, which can be used as a View object's background.                                                                                                                                                                                                       | |

<br />

*** ** * ** ***

Interface that drawables supporting animations should implement.

## Summary

|                                                                               ### Public methods                                                                               ||
|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract boolean` | ` `[isRunning](https://developer.android.com/reference/android/graphics/drawable/Animatable#isRunning())`() ` Indicates whether the animation is running. |
| ` abstract void`    | ` `[start](https://developer.android.com/reference/android/graphics/drawable/Animatable#start())`() ` Starts the drawable's animation.                    |
| ` abstract void`    | ` `[stop](https://developer.android.com/reference/android/graphics/drawable/Animatable#stop())`() ` Stops the drawable's animation.                       |

## Public methods

### isRunning

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

```
public abstract boolean isRunning ()
```

Indicates whether the animation is running.

<br />

|                               Returns                                ||
|-----------|-----------------------------------------------------------|
| `boolean` | True if the animation is running, false otherwise. <br /> |

### start

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

```
public abstract void start ()
```

Starts the drawable's animation.

<br />

### stop

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

```
public abstract void stop ()
```

Stops the drawable's animation.

<br />