设为首页 加入收藏

TOP

Android Runnable 用法
2014-11-24 03:03:24 来源: 作者: 【 】 浏览:1
Tags:Android Runnable 用法

Runnable派生你的子类,重载run()方法。


然后调用View.post(myRunnableObj)即可把你的Runnable对象增加到UI线程中运行。


boolean android.view.View .post(Runnable action)


Causes the Runnable to be added to the message queue. The runnable will be run on the user interface thread.


Parameters:
action The Runnable that will be executed.
Returns:
Returns true if the Runnable was successfully placed in to the message queue. Returns false on failure, usually because the looper processing the message queue is exiting.


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Ubuntu 10.04下编译Resin 3.1.10 下一篇Ubuntu 10.04下编译 Android 全过..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·Sphinx : 高性能SQL (2025-12-24 10:18:11)
·Pandas 性能优化 - (2025-12-24 10:18:08)
·MySQL 索引 - 菜鸟教 (2025-12-24 10:18:06)
·Shell 基本运算符 - (2025-12-24 09:52:56)
·Shell 函数 | 菜鸟教 (2025-12-24 09:52:54)