如果你想创建一个动画可扩展实现此接口。使用setCallback(android.graphics.drawable.Drawable.Callback)申请将此扩展绑定到Drawable视图,该视图会安排执行动画。
公有方法 | |
---|---|
abstract void | invalidateDrawable(Drawable who) 需要重绘时调用。 Called when the drawable needs to be redrawn. |
abstract void | scheduleDrawable(Drawable who, Runnable what, long when) 调用此方法准备下一帧动画。 A Drawable can call this to schedule the next frame of its animation. |
abstract void | unscheduleDrawable(Drawable who, Runnable what) 取消scheduleDrawable(Drawable who, Runnable what, long when)方法的上一次操作。 A Drawable can call this to unschedule an action previously scheduled with scheduleDrawable(Drawable, Runnable, long). |
网友评论