Android Runnable 用法
2015 年 7 月 5 日
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