to top
Android APIs
Added in API level 4
public interface

Animatable

android.graphics.drawable.Animatable
Known Indirect Subclasses

Class Overview

Interface that drawables suporting animations should implement.

Summary

Public Methods

? Examples
abstract boolean isRunning()
Indicates whether the animation is running.

? Examples
abstract void start()
Starts the drawable's animation.

? Examples
abstract void stop()
Stops the drawable's animation.

Public Methods

public abstract boolean isRunning ()

Added in API level 4

Indicates whether the animation is running.

Returns
  • True if the animation is running, false otherwise.

public abstract void start ()

Added in API level 4

Starts the drawable's animation.

public abstract void stop ()

Added in API level 4

Stops the drawable's animation.

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.