美文网首页
Drawble.Callback

Drawble.Callback

作者: 小山雀 | 来源:发表于2017-02-13 17:09 被阅读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).

    相关文章

      网友评论

          本文标题:Drawble.Callback

          本文链接:https://www.haomeiwen.com/subject/uhltwttx.html