Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 1

Animation.AnimationListener

public static interface Animation.AnimationListener

android.view.animation.Animation.AnimationListener


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

abstract void onAnimationEnd(Animation animation)

Notifies the end of the animation.

abstract void onAnimationRepeat(Animation animation)

Notifies the repetition of the animation.

abstract void onAnimationStart(Animation animation)

Notifies the start of the animation.

Public methods

onAnimationEnd

added in API level 1
public abstract void onAnimationEnd (Animation animation)

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

Parameters
animation Animation: The animation which reached its end.

onAnimationRepeat

added in API level 1
public abstract void onAnimationRepeat (Animation animation)

Notifies the repetition of the animation.

Parameters
animation Animation: The animation which was repeated.

onAnimationStart

added in API level 1
public abstract void onAnimationStart (Animation animation)

Notifies the start of the animation.

Parameters
animation Animation: The started animation.