zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    edu_6_1_4
    edu_6_1_2
    edu_6_1_3
    edu_6_1_1
    音乐链接
    音乐推荐界面
    客服页面
    购物页面
    京东读书新闻资讯页面
    安装Tomcat时 ,设置JAVA_HOME和JRE_HOME
  • 原文地址:https://www.cnblogs.com/yuyutianxia/p/3769063.html
Copyright © 2011-2022 走看看