AnimatorListenerAdapter


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

java.lang.Object
   ↳ android.animation.AnimatorListenerAdapter


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

AnimatorListenerAdapter()

Public methods

void onAnimationCancel(Animator animation)

Notifies the cancellation of the animation.

void onAnimationEnd(Animator animation)

Notifies the end of the animation.

void onAnimationPause(Animator animation)

Notifies that the animation was paused.

void onAnimationRepeat(Animator animation)

Notifies the repetition of the animation.

void onAnimationResume(Animator animation)

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

void onAnimationStart(Animator animation)

Notifies the start of the animation.

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

abstract void onAnimationCancel(Animator animation)

Notifies the cancellation of the animation.

abstract void onAnimationEnd(Animator animation)

Notifies the end of the animation.

default void onAnimationEnd(Animator animation, boolean isReverse)

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.

default void onAnimationStart(Animator animation, boolean isReverse)

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

abstract void onAnimationPause(Animator animation)

Notifies that the animation was paused.

abstract void onAnimationResume(Animator animation)

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

Public constructors

AnimatorListenerAdapter

public AnimatorListenerAdapter ()

Public methods

onAnimationCancel

Added in API level 11
public 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. This value cannot be null.

onAnimationEnd

Added in API level 11
public 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. This value cannot be null.

onAnimationPause

Added in API level 19
public void onAnimationPause (Animator animation)

Notifies that the animation was paused.

Parameters
animation Animator: The animaton being paused. This value cannot be null.

onAnimationRepeat

Added in API level 11
public void onAnimationRepeat (Animator animation)

Notifies the repetition of the animation.

Parameters
animation Animator: The animation which was repeated. This value cannot be null.

onAnimationResume

Added in API level 19
public void onAnimationResume (Animator animation)

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

Parameters
animation Animator: The animation being resumed. This value cannot be null.

onAnimationStart

Added in API level 11
public void onAnimationStart (Animator animation)

Notifies the start of the animation.

Parameters
animation Animator: The started animation. This value cannot be null.