Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 TextView,我正在循环输出文本行。但是,当我通过附加到现有文本来设置文本时,它直到循环结束才显示。有没有办法可以用文本逐行更新文本视图
谢谢-Chandu
您必须将循环运行到 ui 线程或使用该代码发布可运行文件。您的代码被锁定在循环中,文本视图无法失效