<?xml version="1.0" encoding="utf-8"?> <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="@dimen/lib_dp_5" app:cardCornerRadius="@dimen/lib_dp_10"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:orientation="vertical" android:padding="@dimen/lib_dp_10"> <com.google.android.material.progressindicator.CircularProgressIndicator android:id="@+id/progressBar" android:layout_width="match_parent" android:layout_height="wrap_content" app:indicatorColor="@color/greenTextColor" app:indicatorSize="@dimen/lib_dp_50" app:trackColor="@color/mainBackground" app:trackCornerRadius="@dimen/lib_dp_5" /> <TextView android:id="@+id/progressText" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/lib_dp_10" android:textSize="@dimen/lib_sp_16" /> </LinearLayout> </androidx.cardview.widget.CardView>