Skip to content

Most visited

Recently visited

navigation
Added in API level 11

Animator.AnimatorListener

public static interface Animator.AnimatorListener

android.animation.Animator.AnimatorListener
Known Indirect Subclasses


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 onAnimationCancel(Animator animation)

Notifies the cancellation of the animation.

abstract void onAnimationEnd(Animator animation)

Notifies the end of the animation.

abstract void onAnimationRepeat(Animator animation)

Notifies the repetition of the animation.

abstract void onAnimationStart(Animator animation)

Notifies the start of the animation.

Public methods

onAnimationCancel

Added in API level 11
void onAnimationCancel (Animator animation)

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

Parameters
animation Animator: The animation which was canceled.

onAnimationEnd

Added in API level 11
void onAnimationEnd (Animator animation)

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

Parameters
animation Animator: The animation which reached its end.

onAnimationRepeat

Added in API level 11
void onAnimationRepeat (Animator animation)

Notifies the repetition of the animation.

Parameters
animation Animator: The animation which was repeated.

onAnimationStart

Added in API level 11
void onAnimationStart (Animator animation)

Notifies the start of the animation.

Parameters
animation Animator: The started animation.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.