Skip to content

Commit bac8f9f

Browse files
Refactor: Update progress bar styles
1 parent 6f6168e commit bac8f9f

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

app/src/main/res/layout/activity_progress_bar.xml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:app="http://schemas.android.com/apk/res-auto"
4-
android:layout_width="match_parent"
4+
xmlns:tools="http://schemas.android.com/tools"
55
android:id="@+id/container"
6+
android:layout_width="match_parent"
67
android:layout_height="match_parent">
78

89
<me.zhanghai.android.fastscroll.FastScrollScrollView
@@ -52,12 +53,13 @@
5253
android:layout_marginTop="24dp"
5354
android:text="@string/horizontal" />
5455

55-
<androidx.core.widget.ContentLoadingProgressBar
56+
<com.google.android.material.progressindicator.LinearProgressIndicator
5657
android:id="@+id/progress_bar_horizontal"
57-
style="?android:attr/progressBarStyleHorizontal"
58+
style="@style/Widget.Material3Expressive.LinearProgressIndicator.Wavy"
5859
android:layout_width="match_parent"
5960
android:layout_height="wrap_content"
60-
android:layout_margin="24dp" />
61+
android:layout_margin="24dp"
62+
android:indeterminate="true" />
6163

6264
<com.google.android.material.button.MaterialButton
6365
android:id="@+id/button_download_horizontal"
@@ -74,13 +76,17 @@
7476
android:layout_marginTop="24dp"
7577
android:text="@string/circular" />
7678

77-
<androidx.core.widget.ContentLoadingProgressBar
79+
<com.google.android.material.progressindicator.CircularProgressIndicator
7880
android:id="@+id/progress_bar"
79-
style="?android:attr/progressBarStyle"
81+
style="@style/Widget.Material3Expressive.CircularProgressIndicator.Wavy"
8082
android:layout_width="wrap_content"
8183
android:layout_height="wrap_content"
8284
android:layout_gravity="center"
83-
android:layout_margin="24dp" />
85+
android:layout_margin="24dp"
86+
android:indeterminate="true"
87+
app:layout_constraintEnd_toEndOf="parent"
88+
app:layout_constraintStart_toStartOf="parent"
89+
app:layout_constraintTop_toTopOf="parent" />
8490

8591
<com.google.android.material.button.MaterialButton
8692
android:id="@+id/button_download"

0 commit comments

Comments
 (0)