Most visited

Recently visited

Added in API level 11

AnimatorListenerAdapter

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

java.lang.Object
   ↳ android.animation.AnimatorListenerAdapter


此适配器类提供了Animator.AnimatorListener方法的空实现。 任何只关心此侦听器方法子集的自定义侦听器都可以简单地继承这个适配器类,而不是直接实现接口。

Summary

Public constructors

AnimatorListenerAdapter()

Public methods

void onAnimationCancel(Animator animation)

通知取消动画。

void onAnimationEnd(Animator animation)

通知动画结束。

void onAnimationPause(Animator animation)

通知动画已暂停。

void onAnimationRepeat(Animator animation)

通知重复的动画。

void onAnimationResume(Animator animation)

通知之前暂停后动画已恢复。

void onAnimationStart(Animator animation)

通知动画的开始。

Inherited methods

From class java.lang.Object
From interface android.animation.Animator.AnimatorListener
From interface android.animation.Animator.AnimatorPauseListener

Public constructors

AnimatorListenerAdapter

Added in API level 11
AnimatorListenerAdapter ()

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.

onAnimationPause

Added in API level 19
void onAnimationPause (Animator animation)

通知动画已暂停。

Parameters
animation Animator: The animaton being paused.

onAnimationRepeat

Added in API level 11
void onAnimationRepeat (Animator animation)

通知重复的动画。

Parameters
animation Animator: The animation which was repeated.

onAnimationResume

Added in API level 19
void onAnimationResume (Animator animation)

通知之前暂停后动画已恢复。

Parameters
animation Animator: The animation being resumed.

onAnimationStart

Added in API level 11
void onAnimationStart (Animator animation)

通知动画的开始。

Parameters
animation Animator: The started animation.

Hooray!