AnimationDrawable

Class of android.graphics.drawable · AnimationDrawable.java · Android's reference

public class AnimationDrawable extends DrawableContainer implements Runnable, Animatable

AnimationDrawable ← DrawableContainer ← Drawable

Frames shown one after another, each for its duration.

Constructors

public AnimationDrawable() source

Methods

public void addFrame(Drawable frame, int duration) source
public int getNumberOfFrames() source
public Drawable getFrame(int index) source
public int getDuration(int i) source
public boolean isOneShot() source
public void setOneShot(boolean oneShot) source
public boolean setVisible(boolean visible, boolean restart) source
public void start() source
public void stop() source
public boolean isRunning() source
public void run() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.