AnimatorListenerAdapter

public abstract class AnimatorListenerAdapter implements Animator.AnimatorListener, Animator.AnimatorPauseListener


This adapter class provides empty implementations of the methods from Animator.AnimatorListener. Any custom listener that cares only about a subset of the methods of this listener can simply subclass this adapter class instead of implementing the interface directly.

Summary

Public constructors

Public methods

@Override void

Notifies the cancellation of the animation.

@Override void

Notifies the end of the animation.

@Override void

Notifies that the animation was paused.

@Override void

Notifies the repetition of the animation.

@Override void

Notifies that the animation was resumed, after being previously paused.

@Override void

Notifies the start of the animation.

Inherited methods

From class Animator.AnimatorListener
void
onAnimationEnd(@NonNull Animator animation, boolean isReverse)

Notifies the end of the animation.

void
onAnimationStart(@NonNull Animator animation, boolean isReverse)

Notifies the start of the animation as well as the animation's overall play direction.

Public constructors

AnimatorListenerAdapter

public final AnimatorListenerAdapter()

Public methods

onAnimationCancel

@Override
public void onAnimationCancel(@NonNull Animator animation)

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

onAnimationEnd

@Override
public void onAnimationEnd(@NonNull Animator animation)

Notifies the end of the animation