com.nineoldandroids.animation
Class AnimatorListenerAdapter

java.lang.Object
  extended by com.nineoldandroids.animation.AnimatorListenerAdapter
All Implemented Interfaces:
Animator.AnimatorListener

public abstract class AnimatorListenerAdapter
extends Object
implements Animator.AnimatorListener

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.


Constructor Summary
AnimatorListenerAdapter()
           
 
Method Summary
 void onAnimationCancel(Animator animation)
          Notifies the cancellation of the animation.
 void onAnimationEnd(Animator animation)
          Notifies the end of the animation.
 void onAnimationRepeat(Animator animation)
          Notifies the repetition of the animation.
 void onAnimationStart(Animator animation)
          Notifies the start of the animation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimatorListenerAdapter

public AnimatorListenerAdapter()
Method Detail

onAnimationCancel

public void onAnimationCancel(Animator animation)

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

Specified by:
onAnimationCancel in interface Animator.AnimatorListener
Parameters:
animation - The animation which was canceled.

onAnimationEnd

public void onAnimationEnd(Animator animation)

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

Specified by:
onAnimationEnd in interface Animator.AnimatorListener
Parameters:
animation - The animation which reached its end.

onAnimationRepeat

public void onAnimationRepeat(Animator animation)

Notifies the repetition of the animation.

Specified by:
onAnimationRepeat in interface Animator.AnimatorListener
Parameters:
animation - The animation which was repeated.

onAnimationStart

public void onAnimationStart(Animator animation)

Notifies the start of the animation.

Specified by:
onAnimationStart in interface Animator.AnimatorListener
Parameters:
animation - The started animation.