VerveDo/app/src/main/res/layout/fragment_progress.xml
2024-11-09 17:32:48 +08:00

79 lines
No EOL
3.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="270dp"
android:animateLayoutChanges="true">
<com.google.android.material.progressindicator.CircularProgressIndicator
android:id="@+id/progress_bar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:max="100"
app:indicatorSize="170dp"
app:indicatorTrackGapSize="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:trackColor="?attr/colorSurfaceContainerHighest"
app:trackCornerRadius="25dp"
app:trackThickness="10dp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="horizontal">
<TextView
android:id="@+id/complete_count"
style="?attr/textAppearanceDisplaySmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:text="0"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold" />
<TextView
style="?attr/textAppearanceDisplayMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="/"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold" />
<TextView
android:id="@+id/total_count"
style="?attr/textAppearanceDisplayMedium"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:text="0"
android:textColor="?attr/colorOnSurface"
android:textStyle="bold" />
</LinearLayout>
<TextView
android:id="@+id/remain_count"
style="?attr/textAppearanceLabelMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAlignment="center"
android:textSize="12sp"
android:visibility="gone" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>