1

How would I do a custom "loading" dialog during an AsyncTask like the one in the Bank of America app, for instance? See:

enter image description here

I basically don't want the popup ProgressDialog but instead one that is embedded into the layout.

4

2 回答 2

4

它不是一个ProgressDialog. 这只是一个ProgressBar. 将其放在您的布局上,并在必要时使其可见。

于 2011-08-24T19:28:08.183 回答
2

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

<ProgressBar
  android:indeterminate="true"
  android:layout_height="wrap_content"
  android:layout_width="wrap_content"
/>
于 2011-08-24T19:49:34.377 回答