在adapter 中,用了一个线程。activity 运行listView,
报错:android.view.ViewRootImpl$CalledFromWrongThreadException:
Only the original thread that created a view hierarchy can touch its views.
更新UI的位置不正确,线程解析数据 handler. mssage 中更新
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its v......
答案就在这里:CalledFromWrongThreadException
----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?
不能在工作线程里直接操作view界面,应该用消息通知主线程自己处理。