public static interface Animator.AnimatorListener
android.animation.Animator.AnimatorListener |
![]() |
An animation listener receives notifications from an animation. Notifications indicate animation related events, such as the end or the repetition of the animation.
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. |
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. |
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. |
void onAnimationRepeat (Animator animation)
Notifies the repetition of the animation.
Parameters | |
---|---|
animation |
Animator : The animation which was repeated. |
void onAnimationStart (Animator animation)
Notifies the start of the animation.
Parameters | |
---|---|
animation |
Animator : The started animation. |