开发者

Custom progress dialog

开发者 https://www.devze.com 2023-03-30 18:17 出处:网络
How would I do a custom \"loading\" dialog during an AsyncTask like the one in the Bank of America app, for instance? See:

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

精彩评论

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

关注公众号