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"
|
|
|
|
|
app:cardElevation="2dp"
|
|
|
|
|
app:cardCornerRadius="16dp"
|
2026-01-26 00:55:21 +08:00
|
|
|
app:cardBackgroundColor="@color/white"
|
2026-02-02 12:46:37 +08:00
|
|
|
app:strokeWidth="0dp"
|
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">
|
|
|
|
|
|
|
|
|
|
<!-- Icon Container -->
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/iconContainer"
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
android:background="@drawable/bg_icon_container_sky"
|
|
|
|
|
android:backgroundTint="@color/sky_blue_container"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:src="@drawable/ic_album"
|
|
|
|
|
app:tint="@color/sky_blue_primary" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
<!-- Album Name -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvAlbumName"
|
|
|
|
|
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"
|
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
|
android:text="相册名称"
|
|
|
|
|
android:textSize="18sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="@color/text_primary"
|
|
|
|
|
android:maxLines="1"
|
|
|
|
|
android:ellipsize="end"
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/iconContainer"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/iconContainer"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/tvCurrentBadge" />
|
|
|
|
|
|
|
|
|
|
<!-- Album Info (Subtitle) -->
|
|
|
|
|
<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"
|
|
|
|
|
app:layout_constraintStart_toStartOf="@id/tvAlbumName"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tvAlbumName"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/tvCurrentBadge" />
|
|
|
|
|
|
|
|
|
|
<!-- Active Badge -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvCurrentBadge"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
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"
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/iconContainer" />
|
|
|
|
|
|
|
|
|
|
<!-- Divider (Optional, subtle) -->
|
2026-01-26 00:55:21 +08:00
|
|
|
<View
|
2026-02-02 12:46:37 +08:00
|
|
|
android:id="@+id/divider"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:layout_width="match_parent"
|
2026-01-26 00:55:21 +08:00
|
|
|
android:layout_height="1dp"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:background="#F0F0F0"
|
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/iconContainer" />
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-02-02 12:46:37 +08:00
|
|
|
<!-- Bottom Stats Row -->
|
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:orientation="horizontal"
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/divider"
|
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/actionsLayout">
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-02-02 12:46:37 +08:00
|
|
|
<!-- Play Mode -->
|
2026-01-26 00:55:21 +08:00
|
|
|
<LinearLayout
|
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-02 12:46:37 +08:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:background="@drawable/bg_nav_item_ripple"
|
|
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
|
android:paddingVertical="4dp">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="14dp"
|
|
|
|
|
android:layout_height="14dp"
|
|
|
|
|
android:src="@drawable/ic_repeat"
|
|
|
|
|
app:tint="@color/text_hint" />
|
|
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvPlayMode"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_marginStart="4dp"
|
2026-01-26 00:55:21 +08:00
|
|
|
android:text="顺序"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:textColor="@color/text_hint" />
|
|
|
|
|
</LinearLayout>
|
2026-01-26 00:55:21 +08:00
|
|
|
|
2026-02-02 12:46:37 +08:00
|
|
|
<!-- Interval -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:background="@drawable/bg_nav_item_ripple"
|
|
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
|
android:paddingVertical="4dp">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="14dp"
|
|
|
|
|
android:layout_height="14dp"
|
|
|
|
|
android:src="@drawable/ic_schedule"
|
|
|
|
|
app:tint="@color/text_hint" />
|
|
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvInterval"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
|
android:text="30m"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:textColor="@color/text_hint" />
|
|
|
|
|
</LinearLayout>
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-02-02 12:46:37 +08:00
|
|
|
<!-- Last Scan -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:background="@drawable/bg_nav_item_ripple"
|
|
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
|
android:paddingVertical="4dp">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="14dp"
|
|
|
|
|
android:layout_height="14dp"
|
|
|
|
|
android:src="@drawable/ic_refresh"
|
|
|
|
|
app:tint="@color/text_hint" />
|
|
|
|
|
|
2026-02-01 10:53:48 +08:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvLastScanTime"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-02 12:46:37 +08:00
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
|
android:text="刚刚"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:textColor="@color/text_hint" />
|
2026-01-26 00:55:21 +08:00
|
|
|
</LinearLayout>
|
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"
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/statsRow"
|
|
|
|
|
app:layout_constraintTop_toTopOf="@id/statsRow">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnEdit"
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
|
|
|
android:layout_width="32dp"
|
|
|
|
|
android:layout_height="32dp"
|
|
|
|
|
android:insetLeft="0dp"
|
|
|
|
|
android:insetTop="0dp"
|
|
|
|
|
android:insetRight="0dp"
|
|
|
|
|
android:insetBottom="0dp"
|
|
|
|
|
android:padding="0dp"
|
|
|
|
|
app:icon="@drawable/ic_edit"
|
|
|
|
|
app:iconSize="18dp"
|
|
|
|
|
app:iconTint="@color/text_secondary"
|
|
|
|
|
app:backgroundTint="@android:color/transparent"
|
|
|
|
|
app:rippleColor="#20000000" />
|
|
|
|
|
|
|
|
|
|
<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"
|
|
|
|
|
app:iconSize="18dp"
|
|
|
|
|
app:iconTint="@color/status_error_text"
|
|
|
|
|
app:backgroundTint="@android:color/transparent"
|
|
|
|
|
app:rippleColor="#20FF0000" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnSwitch"
|
|
|
|
|
style="@style/Widget.Material3.Button.TonalButton"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="36dp"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:text="使用"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="@color/sky_blue_primary"
|
|
|
|
|
app:backgroundTint="@color/sky_blue_container"
|
|
|
|
|
app:cornerRadius="18dp"
|
|
|
|
|
android:insetTop="0dp"
|
|
|
|
|
android:insetBottom="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>
|