报错:Only the original thread that created a view hierarchy can touch its views.

来源:互联网 发布:js classname赋值 编辑:程序博客网 时间:2024/05/21 22:48

进程里面动态设置ui报错

解决方案:

xxxActivity.this.runOnUiThread(new Runnable() {

@Override

public void run() {

//动态设置ui

}

...

原创粉丝点击