Files
QieKan-3.0/app/src/main/res/layout/view_simple_counter.xml
T
2025-11-03 01:28:49 +08:00

101 lines
4.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<merge xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
android:id="@+id/layout_root"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/tvSeekTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginEnd="8dp"
android:maxWidth="48sp"
android:maxLines="2"
android:text="@string/text"
android:textColor="?android:attr/textColorSecondary"
android:textSize="12sp"
android:textStyle="bold"
tools:ignore="RtlSymmetry" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/tvSeekTitleVertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginVertical="4dp"
android:maxLength="10"
android:maxLines="1"
android:ellipsize="end"
android:text="@string/text"
android:textColor="?android:attr/textColorSecondary"
android:textSize="12sp"
android:textStyle="bold"
tools:ignore="RtlSymmetry" />
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginVertical="2dp"
app:cardBackgroundColor="?attr/colorSurfaceVariant"
app:cardCornerRadius="24dp"
app:strokeWidth="0dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<com.google.android.material.button.MaterialButton
android:id="@+id/iv_seek_reduce"
style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_weight="3"
android:minWidth="64dp"
android:contentDescription="@string/reduce"
app:backgroundTint="?attr/colorSurfaceContainer"
app:icon="@drawable/ic_reduce"
app:iconGravity="textStart"
app:iconSize="18dp" />
<TextView
android:id="@+id/tvSeekValue"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2"
android:gravity="center"
android:text="@string/text"
android:textColor="?attr/colorSecondary"
android:textSize="12sp"
android:textStyle="bold" />
<com.google.android.material.button.MaterialButton
android:id="@+id/iv_seek_plus"
style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
android:layout_width="0dp"
android:layout_height="40dp"
android:layout_weight="3"
android:minWidth="64dp"
android:contentDescription="@string/plus"
app:backgroundTint="?attr/colorSurfaceContainer"
app:icon="@drawable/ic_add"
app:iconGravity="textStart"
app:iconSize="18dp" />
</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</LinearLayout>
</LinearLayout>
</merge>