This step is done to avoid blocking the main UI thread.
这一步是为了避免阻塞主ui线程。
Listing 2 shows the XML UI declarations for the main UI screen layout.
清单2展示了主ui屏幕布局的XML UI声明。
Thus, addStock will execute on a background thread, not on the main UI thread.
如此,addStock将在一个背景线程上执行,而不是在主UI 线程上。
The spawned thread does not have access to the same resources as the main UI thread.
衍生线程不能访问主ui线程访问的资源。
This method will always be executed on the main UI thread, so it is ideal for modifying the UI.
这个方法总是在主ui线程上被执行,因此对于修改UI这是一个很好的选择。
The Online Backup widget on the Main UI has been removed temporarily due to some changes we have made.
由于我们所做的一些更改,联机备份的主UI部件暂时被移除。
If you run the code in Listing 1 on the main UI thread of an application, it might cause an application Not Responding dialog to appear, depending upon the speed of the user's network.
如果您在应用程序的主ui线程上运行清单1中的代码,可能会出现ApplicationNot Responding对话框,具体视用户网络速度而定。
If you run the code in Listing 1 on the main UI thread of an application, it might cause an application Not Responding dialog to appear, depending upon the speed of the user's network.
如果您在应用程序的主ui线程上运行清单1中的代码,可能会出现ApplicationNot Responding对话框,具体视用户网络速度而定。
应用推荐