首页 > 其他 > 详细

Drawable.Callback

时间:2014-06-05 14:13:25      阅读:407      评论:0      收藏:0      [点我收藏+]

 一。介绍

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

 

Drawable.Callback,布布扣,bubuko.com

Drawable.Callback

原文:http://www.cnblogs.com/yuyutianxia/p/3769063.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!