Most visited

Recently visited

Added in API level 11

Animator.AnimatorListener

public static interface Animator.AnimatorListener

android.animation.Animator.AnimatorListener
Known Indirect Subclasses


动画侦听器从动画接收通知。 通知表示与动画相关的事件,例如动画的结束或重复。

Summary

Public methods

abstract void onAnimationCancel(Animator animation)

通知取消动画。

abstract void onAnimationEnd(Animator animation)

通知动画结束。

abstract void onAnimationRepeat(Animator animation)

通知重复的动画。

abstract void onAnimationStart(Animator animation)

通知动画的开始。

Public methods

onAnimationCancel

Added in API level 11
void onAnimationCancel (Animator animation)

通知取消动画。 对于重复次数设置为INFINITE的动画,不会调用此回调。

Parameters
animation Animator: The animation which was canceled.

onAnimationEnd

Added in API level 11
void onAnimationEnd (Animator animation)

通知动画结束。 对于重复次数设置为INFINITE的动画,不会调用此回调。

Parameters
animation Animator: The animation which reached its end.

onAnimationRepeat

Added in API level 11
void onAnimationRepeat (Animator animation)

通知重复的动画。

Parameters
animation Animator: The animation which was repeated.

onAnimationStart

Added in API level 11
void onAnimationStart (Animator animation)

通知动画的开始。

Parameters
animation Animator: The started animation.

Hooray!