参考:

Thread中runOnUiThread的简单使用
https://blog.csdn.net/cf8833/article/details/90297775

Android常见报错之 - Only the original thread that created a view hierarchy can touch its views.
https://blog.csdn.net/BruceZong/article/details/83964218#:~:text=Only%20the%20original%20thread%20that%20created%20a%20view,%E9%82%A3%E4%B9%88%EF%BC%8C%E5%A6%82%E6%9E%9C%E5%AD%90%E7%BA%BF%E7%A8%8B%E6%9C%89%E9%9C%80%E8%A6%81%E6%93%8D%E4%BD%9CUI%E7%9A%84%E9%9C%80%E6%B1%82%E6%80%8E%E4%B9%88%E5%8A%9E%E5%91%A2%EF%BC%9F%20%E4%B8%80%E8%88%AC%E6%9D%A5%E8%AF%B4%EF%BC%8C%E5%8F%AF%E4%BB%A5%E9%80%9A%E8%BF%87%E5%A6%82%E4%B8%8B%E5%87%A0%E7%A7%8D%E6%96%B9%E5%BC%8F%E6%9D%A5%E5%AE%9E%E7%8E%B0%E3%80%82%20%E5%85%B6%E5%8E%9F%E7%90%86%E9%83%BD%E6%98%AF%E9%80%9A%E8%BF%87%E9%97%B4%E6%8E%A5%E8%B0%83%E7%94%A8%EF%BC%8C%E5%9C%A8%E4%B8%BB%E7%BA%BF%E7%A8%8B%E4%B8%AD%E5%8E%BB%E6%93%8D%E4%BD%9CUI%EF%BC%9A%201.%20%E4%BD%BF%E7%94%A8View.post%E6%96%B9%E6%B3%95%EF%BC%8Cpost%E4%B8%80%E4%B8%AARunnable%E5%AF%B9%E8%B1%A1%EF%BC%8C%E5%9C%A8run%E6%96%B9%E6%B3%95%E4%B8%AD%E6%93%8D%E4%BD%9CUI%202.%20%E4%BD%BF%E7%94%A8Activity.runOnUiThread%E6%96%B9%E6%B3%95%EF%BC%8C%E4%BC%A0%E5%85%A5%E4%B8%80%E4%B8%AARunnable%E5%AF%B9%E8%B1%A1%EF%BC%8C%E5%9C%A8run%E6%96%B9%E6%B3%95%E4%B8%AD%E6%93%8D%E4%BD%9CUI%203.

Android子线程真的不能更新UI么
https://www.cnblogs.com/lao-liang/p/5108745.html

标签: application

添加新评论