2018年12月20日

Android 子线程更新UI 异常

摘要: 众所周知,Android是不可以在子线程中直接更新UI的,需要借助Handler或者View.post(Runnable runnable)或者runOnUIThread(Runnable runnable)将更新的代码切入到主线程中去实现UI更新。 我们来试一下,在Activity的 onCrea 阅读全文

posted @ 2018-12-20 23:56 AceSui 阅读(699) 评论(0) 推荐(0) 编辑

导航