码迷,mamicode.com
首页 > 其他好文 > 详细

Drawable.Callback

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

标签:c   style   a   ext   color   int   

 一。介绍

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

标签:c   style   a   ext   color   int   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!