Added in API level 4

Animatable


interface Animatable
Animatable2

Abstract class that drawables supporting animations and callbacks should extend.

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.

AnimatedImageDrawable

Drawable for drawing animated images (like GIF).

AnimatedVectorDrawable

This class animates properties of a android.graphics.drawable.VectorDrawable with animations defined using android.animation.ObjectAnimator or android.animation.AnimatorSet.

Interface that drawables supporting animations should implement.

Summary

Public methods
abstract Boolean

Indicates whether the animation is running.

abstract Unit

Starts the drawable's animation.

abstract Unit

Stops the drawable's animation.

Public methods

isRunning

Added in API level 4
abstract fun isRunning(): Boolean

Indicates whether the animation is running.

Return
Boolean True if the animation is running, false otherwise.

start

Added in API level 4
abstract fun start(): Unit

Starts the drawable's animation.

stop

Added in API level 4
abstract fun stop(): Unit

Stops the drawable's animation.