Most visited

Recently visited

Added in API level 1

Animation.AnimationListener

public static interface Animation.AnimationListener

android.view.animation.Animation.AnimationListener


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

Summary

Public methods

abstract void onAnimationEnd(Animation animation)

通知动画结束。

abstract void onAnimationRepeat(Animation animation)

通知重复的动画。

abstract void onAnimationStart(Animation animation)

通知动画的开始。

Public methods

onAnimationEnd

Added in API level 1
void onAnimationEnd (Animation animation)

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

Parameters
animation Animation: The animation which reached its end.

onAnimationRepeat

Added in API level 1
void onAnimationRepeat (Animation animation)

通知重复的动画。

Parameters
animation Animation: The animation which was repeated.

onAnimationStart

Added in API level 1
void onAnimationStart (Animation animation)

通知动画的开始。

Parameters
animation Animation: The started animation.

Hooray!