public abstract class AnimatorListenerAdapter extends Object implements Animator.AnimatorListener, Animator.AnimatorPauseListener
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 and Description |
---|
AnimatorListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void onAnimationCancel(Animator animation)
Notifies the cancellation of the animation. This callback is not invoked for animations with repeat count set to INFINITE.
onAnimationCancel
in interface Animator.AnimatorListener
animation
- The animation which was canceled.public void onAnimationEnd(Animator animation)
Notifies the end of the animation. This callback is not invoked for animations with repeat count set to INFINITE.
onAnimationEnd
in interface Animator.AnimatorListener
animation
- The animation which reached its end.public void onAnimationRepeat(Animator animation)
Notifies the repetition of the animation.
onAnimationRepeat
in interface Animator.AnimatorListener
animation
- The animation which was repeated.public void onAnimationStart(Animator animation)
Notifies the start of the animation.
onAnimationStart
in interface Animator.AnimatorListener
animation
- The started animation.public void onAnimationPause(Animator animation)
Notifies that the animation was paused.
onAnimationPause
in interface Animator.AnimatorPauseListener
animation
- The animaton being paused.Animator.pause()
public void onAnimationResume(Animator animation)
Notifies that the animation was resumed, after being previously paused.
onAnimationResume
in interface Animator.AnimatorPauseListener
animation
- The animation being resumed.Animator.resume()