首页 > 代码库 > Drawable.Callback
Drawable.Callback
一。介绍
public abstract void invalidateDrawable (Drawable who)
- Called when the drawable needs to be redrawn. A view at this point should invalidate itself (or at least the part
of itself where the drawable appears).
public abstract void scheduleDrawable (Drawable who, Runnable what, long when)
- A Drawable can call this to schedule the next frame of its animation. An implementation can generally simply call
postAtTime(Runnable, Object, long) with the parameters (what, who, when) to perform the scheduling.
public abstract void unscheduleDrawable (Drawable who, Runnable what)
- A Drawable can call this to unschedule an action previously scheduled with scheduleDrawable(Drawable, Runnable, long).
An implementation can generally simply call removeCallbacks(Runnable, Object) with the parameters (what, who) to unschedule the drawable.
二。示例
glslidingBar
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。