1. 首页
  2. 数据库
  3. 其它
  4. 为什么能在子线程通过setText进行更新UI

为什么能在子线程通过setText进行更新UI

上传者: 2021-01-16 20:11:42上传 PDF文件 47.87KB 热度 7次
为什么可以在子线程通过setText进行更新UI void checkThread() { if (mThread != Thread.currentThread()) { throw new CalledFromWrongThreadException( Only the original thread that created a view hierarchy can touch its views.); } } 一般情况下在子线程更新UI是会报错的,因为在ViewRootImpl
下载地址
用户评论