Custom progress dialog
-
11-01-2021 - |
Question
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 embedded into the layout.
Solution
It's not a ProgressDialog
. It's just a ProgressBar
. Put it on your layout and make it visible when it's necessary.
OTHER TIPS
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"
/>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow