可能重复:
Download a file with Android, and showing the progress in a ProgressDialog
Android Activity Indicator?机器人加载消息
我真的在android系统 我做一个web服务(XML)连接的应用程序是新手,它的工作原理不错,但我的应用程序加载视图不完整的屏幕,然后显示数据。 当所有数据从服务器上下载并显示出来时,我想要实现“准备就绪”对话框。
感谢您的帮助
可能重复:
Download a file with Android, and showing the progress in a ProgressDialog
Android Activity Indicator?机器人加载消息
我真的在android系统 我做一个web服务(XML)连接的应用程序是新手,它的工作原理不错,但我的应用程序加载视图不完整的屏幕,然后显示数据。 当所有数据从服务器上下载并显示出来时,我想要实现“准备就绪”对话框。
感谢您的帮助
从http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog
ProgressDialog progressDialog= ProgressDialog.show(MyActivity.this, "",
"Loading. Please wait...", true);
progressDialog.dismiss(); // for close the dialog bar.
伟人.. 你知道如何保持进度对话2秒吗? – funkeeiads
@funkeeiads让线程睡眠2000毫秒 – Ahmad
使用的AsyncTask用于显示进度条和第一次下载从服务器的数据,那么所以它没有冻结的不完整的观点UI和渲染 –
看到这些:HTTP:/ /stackoverflow.com/questions/5025652/android-activity-indicator,http://stackoverflow.com/questions/10085227/android-show-progress-indicator-of-parse-while-downloading-a-xml和http:/ /stackoverflow.com/questions/6302479/android-activity-indicator。 –