computeValuesWithHarfbuzz -- need to force to single run
或者
android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views
子线程不可以直接修改界面的内容,如果要修改界面可以利用消息机制Handler,将写在子线程的内容写到Handler中。具体可参考一下代码片段
本文探讨了在子线程中遇到的UI更新问题,如computeValuesWithHarfbuzz需要强制单线程运行的情况,以及如何通过Handler机制解决子线程直接修改界面内容导致的错误。
1921

被折叠的 条评论
为什么被折叠?



