自定进度对话框

时间:2011-08-24 19:24:48

标签: android dialog android-progressbar

例如,如果像美国银行应用程序中的AsyncTask那样,我如何进行自定义“加载”对话框?见:

enter image description here

我基本上不想要弹出窗口ProgressDialog,而是嵌入到布局中的窗格。

2 个答案:

答案 0 :(得分:4)

这不是ProgressDialog。这只是一个ProgressBar。将它放在您的布局上,并在必要时将其显示出来。

答案 1 :(得分:2)

这是一个可以添加到任何布局的ProgressBar视图:

<ProgressBar
  android:indeterminate="true"
  android:layout_height="wrap_content"
  android:layout_width="wrap_content"
/>
相关问题