to top
Android APIs
Added in API level 1
public static interface

Animation.AnimationListener

android.view.animation.Animation.AnimationListener

Class Overview

An animation listener receives notifications from an animation. Notifications indicate animation related events, such as the end or the repetition of the animation.

Summary

Public Methods

? Examples
abstract void onAnimationEnd( Animation animation)

Notifies the end of the animation.


? Examples
abstract void onAnimationRepeat( Animation animation)

Notifies the repetition of the animation.


? Examples
abstract void onAnimationStart( Animation animation)

Notifies the start of the animation.

Public Methods

public abstract void onAnimationEnd (Animation animation)

Added in API level 1

Notifies the end of the animation. This callback is not invoked for animations with repeat count set to INFINITE.

Parameters
animation The animation which reached its end.

public abstract void onAnimationRepeat (Animation animation)

Added in API level 1

Notifies the repetition of the animation.

Parameters
animation The animation which was repeated.

public abstract void onAnimationStart (Animation animation)

Added in API level 1

Notifies the start of the animation.

Parameters
animation The started 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.