开发者

Custom progress dialog

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

Custom progress dialog

I basically don't want the popup ProgressDialog but instead one that is embedde开发者_JAVA百科d into the layout.


It's not a ProgressDialog. It's just a ProgressBar. Put it on your layout and make it visible when it's necessary.


That's a ProgressBar view that can be added to any layout:

<ProgressBar
  android:indeterminate="true"
  android:layout_height="wrap_content"
  android:layout_width="wrap_content"
/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜