完美解决Only the original thread that created a view hierarchy can touch its views
2016-11-23 11:59
831 查看
导致此问题的原因,就是在子线程中更新了UI。
解决方法很简单,就在把子线程的更新UI的逻辑改为在主线程中更新就可以了。
比如使用handler把在子线程中触发更新UI的逻辑,发送到主线程中去完成。
解决方法很简单,就在把子线程的更新UI的逻辑改为在主线程中更新就可以了。
比如使用handler把在子线程中触发更新UI的逻辑,发送到主线程中去完成。
相关文章推荐
- 浅析Android中的消息机制-解决:Only the original thread that created a view hierarchy can touch its views. .
- Android初学习 - 解决 "Only the original thread that created a view hierarchy can touch its views"
- Only the original thread that created a view hierarchy can touch its views的解决记录
- 解决Only the original thread that created a view hierarchy can touch its views
- 已解决:Only the original thread that created a view hierarchy can touch its views.
- Android进阶——Handler的应用之解决Only the original thread that created a view hierarchy can touch its views
- 浅析Android中的消息机制-解决:Only the original thread that created a view hierarchy can touch its views.
- 浅析Android中的消息机制-解决:Only the original thread that created a view hierarchy can touch its views.
- 浅析Android中的消息机制-解决:Only the original thread that created a view hierarchy can touch its views.
- 浅析Android中的消息机制-解决:Only the original thread that created a view hierarchy can touch its views.
- 浅析Android中的消息机制-解决:Only the original thread that created a view hierarchy can touch its views.
- 解决Only the original thread that created a view hierarchy can touch its views
- android开发中出现Only the original thread that created a view hierarchy can touch its views.错误的解决方法
- 解决:Only the original thread that created a view hierarchy can touch its views
- "Only the original thread that created a view hierarchy can touch its views."解决
- 浅析Android中的消息机制-解决:Only the original thread that created a view hierarchy can touch its views.
- Work 工作子线程更新UI控件--解决Only the original thread that created a view hierarchy can touch its views
- "Only the original thread that created a view hierarchy can touch its views.” 解决方法
- 开发错误记录1:解决:Only the original thread that created a view hierarchy can touch its views.
- 开发中错误记录:解决:Only the original thread that created a view hierarchy can touch its views.