您的位置:首页 > 产品设计 > UI/UE

Android的UI组件不是线程安全的,不应该在worker线程操纵UI

2011-07-05 01:01 507 查看
Additionally, the Andoid UI toolkit is not thread-safe. So, you must not manipulate your UI from a worker thread—you must do all manipulation to your user interface from the UI thread. Thus, there are simply two rules to Android's single thread model:Do not block the UI thread
Do not access the Android UI toolkit from outside the UI thread

UI组件不是线程安全的,所以不应该在worker线程操纵UI。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: