问题:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original
问题:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a 我的场景是 LinearLayout.LayoutParams params11 = new LinearLayout.LayoutParams(264, LinearLayout.LayoutParams.WRAP_CONTENT); bt21.setLayoutParams(params11); 更新设置UI 问题的意思是更新UI阻塞了主线程 解决方法: 利用runOnUiThread
暂无评论