Use AlertDialog with dialog_waiting.xml (spinner + message) and dialog_progress.xml (horizontal ProgressBar + message) instead of the deprecated ProgressDialog. Progress updates now use findViewById on the dialog view. Reviewed in codereview.md (recommendation 2.4).
22 lines
748 B
XML
22 lines
748 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:padding="20dp">
|
|
|
|
<TextView
|
|
android:id="@+id/message"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:layout_marginBottom="12dp" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
style="?android:attr/progressBarStyleHorizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:max="100"
|
|
android:progress="0" />
|
|
</LinearLayout>
|