Most visited

Recently visited

Added in API level 16

TimeAnimator.TimeListener

public static interface TimeAnimator.TimeListener

android.animation.TimeAnimator.TimeListener


该接口的实现者可以将自己设置为TimeAnimator实例的更新侦听器,以在每个动画帧上接收回调,以接收自动画器启动以来的总时间以及自上一帧以来的增量时间。 第一次调用监听器时,deltaTime将为零。 totalTime也是如此,除非动画师在开始之前将其设置为特定的currentPlayTime

Summary

Public methods

abstract void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime)

通知监听器出现另一个动画帧,以及有关经过时间的信息。

Public methods

onTimeUpdate

Added in API level 16
void onTimeUpdate (TimeAnimator animation, 
                long totalTime, 
                long deltaTime)

通知监听器出现另一个动画帧,以及有关经过时间的信息。

Parameters
animation TimeAnimator: The animator sending out the notification.
totalTime long: The total time elapsed since the animator started, in milliseconds.
deltaTime long: The time elapsed since the previous frame, in milliseconds.

Hooray!