Drawble.Callback

2017-02-13  本文已影响0人  小山雀

如果你想创建一个动画可扩展实现此接口。使用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).
上一篇下一篇

猜你喜欢

热点阅读