How would I do a custom "loading" dialog during an AsyncTask
like the one in the Bank of America app, for instance? See:
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"
/>
精彩评论