2026-01-23 09:15:10 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:id="@+id/cardAlbum"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_marginBottom="12dp"
|
|
|
|
|
android:layout_marginHorizontal="4dp"
|
2026-02-03 21:38:01 +08:00
|
|
|
app:cardElevation="0dp"
|
|
|
|
|
app:cardCornerRadius="20dp"
|
2026-01-26 00:55:21 +08:00
|
|
|
app:cardBackgroundColor="@color/white"
|
2026-02-03 21:38:01 +08:00
|
|
|
app:strokeWidth="1dp"
|
|
|
|
|
app:strokeColor="#F0F0F0"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:clickable="true"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:focusable="true"
|
|
|
|
|
android:foreground="?android:attr/selectableItemBackground">
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-02-02 12:46:37 +08:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2026-01-23 09:15:10 +08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:padding="16dp">
|
|
|
|
|
|
2026-02-03 21:38:01 +08:00
|
|
|
<!-- Album Icon -->
|
2026-02-02 12:46:37 +08:00
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/iconContainer"
|
2026-02-03 21:38:01 +08:00
|
|
|
android:layout_width="56dp"
|
|
|
|
|
android:layout_height="56dp"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:background="@drawable/bg_icon_container_sky"
|
|
|
|
|
android:backgroundTint="@color/sky_blue_container"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2026-02-03 21:38:01 +08:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
app:layout_constraintVertical_bias="0.0">
|
2026-02-02 12:46:37 +08:00
|
|
|
|
|
|
|
|
<ImageView
|
2026-02-03 21:38:01 +08:00
|
|
|
android:layout_width="28dp"
|
|
|
|
|
android:layout_height="28dp"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:src="@drawable/ic_album"
|
|
|
|
|
app:tint="@color/sky_blue_primary" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
2026-02-03 21:38:01 +08:00
|
|
|
<!-- Album Name & Badge Row -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/headerRow"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_width="0dp"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:layout_height="wrap_content"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_marginStart="16dp"
|
2026-02-03 21:38:01 +08:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal"
|
2026-02-02 12:46:37 +08:00
|
|
|
app:layout_constraintStart_toEndOf="@id/iconContainer"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/iconContainer"
|
2026-02-03 21:38:01 +08:00
|
|
|
app:layout_constraintEnd_toEndOf="parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvAlbumName"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="相册名称"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="@color/text_primary"
|
|
|
|
|
android:maxLines="1"
|
|
|
|
|
android:ellipsize="end" />
|
2026-02-02 12:46:37 +08:00
|
|
|
|
2026-02-03 21:38:01 +08:00
|
|
|
<!-- Active Badge -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvCurrentBadge"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:text="使用中"
|
|
|
|
|
android:textSize="11sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="@color/sky_blue_primary"
|
|
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
|
android:paddingVertical="4dp"
|
|
|
|
|
android:background="@drawable/badge_background"
|
|
|
|
|
android:backgroundTint="@color/sky_blue_container"
|
|
|
|
|
android:visibility="visible" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Media Info Subtitle -->
|
2026-02-02 12:46:37 +08:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvAlbumInfo"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
|
android:text="3 个文件夹 · 120 张图片"
|
|
|
|
|
android:textSize="13sp"
|
|
|
|
|
android:textColor="@color/text_secondary"
|
2026-02-03 21:38:01 +08:00
|
|
|
app:layout_constraintStart_toStartOf="@id/headerRow"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/headerRow"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
2026-02-02 12:46:37 +08:00
|
|
|
|
2026-02-03 21:38:01 +08:00
|
|
|
<!-- Stats Row (Cleaned up) -->
|
2026-01-23 09:15:10 +08:00
|
|
|
<LinearLayout
|
2026-02-02 12:46:37 +08:00
|
|
|
android:id="@+id/statsRow"
|
|
|
|
|
android:layout_width="0dp"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:layout_height="wrap_content"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_marginTop="12dp"
|
2026-02-03 21:38:01 +08:00
|
|
|
android:orientation="horizontal"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:gravity="center_vertical"
|
2026-02-03 21:38:01 +08:00
|
|
|
app:layout_constraintStart_toStartOf="@id/headerRow"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvAlbumInfo"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/actionsLayout"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-02-02 12:46:37 +08:00
|
|
|
<!-- Play Mode -->
|
2026-02-03 21:38:01 +08:00
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="14dp"
|
|
|
|
|
android:layout_height="14dp"
|
|
|
|
|
android:src="@drawable/ic_repeat"
|
|
|
|
|
app:tint="@color/text_hint" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvPlayMode"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_width="wrap_content"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:layout_height="wrap_content"
|
2026-02-03 21:38:01 +08:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
|
android:text="顺序"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:textColor="@color/text_hint" />
|
2026-01-26 00:55:21 +08:00
|
|
|
|
2026-02-03 21:38:01 +08:00
|
|
|
<TextView
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-03 21:38:01 +08:00
|
|
|
android:text=" · "
|
|
|
|
|
android:textColor="@color/text_hint"
|
|
|
|
|
android:layout_marginHorizontal="4dp"/>
|
|
|
|
|
|
|
|
|
|
<!-- Interval -->
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="14dp"
|
|
|
|
|
android:layout_height="14dp"
|
|
|
|
|
android:src="@drawable/ic_schedule"
|
|
|
|
|
app:tint="@color/text_hint" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvInterval"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-03 21:38:01 +08:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
|
android:text="30m"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:textColor="@color/text_hint" />
|
|
|
|
|
|
|
|
|
|
<!-- Last Scan REMOVED -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvLastScanTime"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
android:visibility="gone" />
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-02-02 12:46:37 +08:00
|
|
|
</LinearLayout>
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-02-02 12:46:37 +08:00
|
|
|
<!-- Actions -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/actionsLayout"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2026-02-03 21:38:01 +08:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
2026-02-02 12:46:37 +08:00
|
|
|
|
2026-02-03 21:38:01 +08:00
|
|
|
<!-- Edit Button (Changed to Text Button) -->
|
2026-02-02 12:46:37 +08:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnEdit"
|
2026-02-03 21:38:01 +08:00
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
|
|
|
android:layout_width="wrap_content"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_height="32dp"
|
2026-02-03 21:38:01 +08:00
|
|
|
android:text="编辑"
|
|
|
|
|
android:textSize="11sp"
|
|
|
|
|
android:textColor="@color/text_secondary"
|
|
|
|
|
app:strokeColor="@color/bg_secondary_modern"
|
|
|
|
|
app:strokeWidth="1dp"
|
|
|
|
|
app:cornerRadius="16dp"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:insetTop="0dp"
|
|
|
|
|
android:insetBottom="0dp"
|
2026-02-03 21:38:01 +08:00
|
|
|
android:paddingHorizontal="12dp"
|
|
|
|
|
android:minWidth="0dp" />
|
2026-02-02 12:46:37 +08:00
|
|
|
|
2026-02-03 21:38:01 +08:00
|
|
|
<!-- Delete Button (Icon) -->
|
2026-02-02 12:46:37 +08:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnDelete"
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
|
|
|
android:layout_width="32dp"
|
|
|
|
|
android:layout_height="32dp"
|
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
|
android:insetLeft="0dp"
|
|
|
|
|
android:insetTop="0dp"
|
|
|
|
|
android:insetRight="0dp"
|
|
|
|
|
android:insetBottom="0dp"
|
|
|
|
|
android:padding="0dp"
|
|
|
|
|
app:icon="@drawable/ic_delete"
|
2026-02-03 21:38:01 +08:00
|
|
|
app:iconSize="16dp"
|
2026-02-02 12:46:37 +08:00
|
|
|
app:iconTint="@color/status_error_text"
|
|
|
|
|
app:backgroundTint="@android:color/transparent"
|
|
|
|
|
app:rippleColor="#20FF0000" />
|
|
|
|
|
|
2026-02-03 21:38:01 +08:00
|
|
|
<!-- Switch Button -->
|
2026-02-02 12:46:37 +08:00
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnSwitch"
|
|
|
|
|
style="@style/Widget.Material3.Button.TonalButton"
|
|
|
|
|
android:layout_width="wrap_content"
|
2026-02-03 21:38:01 +08:00
|
|
|
android:layout_height="32dp"
|
|
|
|
|
android:layout_marginStart="4dp"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:text="使用"
|
2026-02-03 21:38:01 +08:00
|
|
|
android:textSize="11sp"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="@color/sky_blue_primary"
|
|
|
|
|
app:backgroundTint="@color/sky_blue_container"
|
2026-02-03 21:38:01 +08:00
|
|
|
app:cornerRadius="16dp"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:insetTop="0dp"
|
2026-02-03 21:38:01 +08:00
|
|
|
android:insetBottom="0dp"
|
|
|
|
|
android:paddingHorizontal="12dp"
|
|
|
|
|
android:minWidth="0dp" />
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2026-02-02 12:46:37 +08:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
</com.google.android.material.card.MaterialCardView>
|