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"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:layout_marginBottom="@dimen/spacing_md"
|
2026-01-26 00:55:21 +08:00
|
|
|
app:cardElevation="0dp"
|
|
|
|
|
app:cardCornerRadius="@dimen/corner_radius_lg"
|
|
|
|
|
app:cardBackgroundColor="@color/white"
|
|
|
|
|
app:strokeColor="@color/bg_secondary_modern"
|
|
|
|
|
app:strokeWidth="1dp"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:clickable="true"
|
|
|
|
|
android:focusable="true">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
2026-01-26 00:55:21 +08:00
|
|
|
android:padding="@dimen/spacing_lg">
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
<!-- Top Row: Name and Status -->
|
2026-01-23 09:15:10 +08:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
<FrameLayout
|
|
|
|
|
android:layout_width="40dp"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:background="@drawable/bg_icon_container_sky"
|
|
|
|
|
android:backgroundTint="@color/sky_blue_container">
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
2026-01-23 09:15:10 +08:00
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
2026-01-26 00:55:21 +08:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_marginStart="@dimen/spacing_md">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvAlbumName"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="相册名称"
|
|
|
|
|
android:textSize="@dimen/text_size_md"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="@color/text_primary_modern"
|
|
|
|
|
android:maxLines="1"
|
|
|
|
|
android:ellipsize="end" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvAlbumInfo"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="3 个文件夹 · 120 张图片"
|
|
|
|
|
android:textSize="@dimen/text_size_xs"
|
|
|
|
|
android:textColor="@color/text_secondary_modern"
|
|
|
|
|
android:layout_marginTop="2dp" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
2026-01-23 09:15:10 +08:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvCurrentBadge"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-01-26 00:55:21 +08:00
|
|
|
android:text="使用中"
|
|
|
|
|
android:textSize="10sp"
|
|
|
|
|
android:textColor="@color/sky_blue_primary"
|
|
|
|
|
android:paddingHorizontal="8dp"
|
|
|
|
|
android:paddingVertical="4dp"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:background="@drawable/badge_background"
|
2026-01-26 00:55:21 +08:00
|
|
|
android:backgroundTint="@color/sky_blue_container"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:visibility="gone"
|
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
<!-- Divider -->
|
|
|
|
|
<View
|
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"
|
|
|
|
|
android:background="@color/bg_secondary_modern"
|
|
|
|
|
android:layout_marginVertical="@dimen/spacing_md" />
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
<!-- Bottom Row: Config and Actions -->
|
2026-01-23 09:15:10 +08:00
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-01-26 00:55:21 +08:00
|
|
|
android:gravity="center_vertical">
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
<!-- Config Info -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="0dp"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:layout_height="wrap_content"
|
2026-01-26 00:55:21 +08:00
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvPlayMode"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="顺序"
|
|
|
|
|
android:textSize="@dimen/text_size_xs"
|
|
|
|
|
android:textColor="@color/text_hint_modern"
|
|
|
|
|
android:drawableStart="@drawable/ic_repeat"
|
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
|
android:drawableTint="@color/text_hint_modern" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvInterval"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="30 分钟"
|
|
|
|
|
android:textSize="@dimen/text_size_xs"
|
|
|
|
|
android:textColor="@color/text_hint_modern"
|
|
|
|
|
android:layout_marginStart="@dimen/spacing_md"
|
|
|
|
|
android:drawableStart="@drawable/ic_schedule"
|
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
|
android:drawableTint="@color/text_hint_modern" />
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-02-01 10:53:48 +08:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvLastScanTime"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="未扫描"
|
|
|
|
|
android:textSize="@dimen/text_size_xs"
|
|
|
|
|
android:textColor="@color/text_hint_modern"
|
|
|
|
|
android:layout_marginStart="@dimen/spacing_md"
|
|
|
|
|
android:drawableStart="@drawable/ic_refresh"
|
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
|
android:drawableTint="@color/text_hint_modern" />
|
|
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
</LinearLayout>
|
2026-01-23 09:15:10 +08:00
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
<!-- Action Buttons -->
|
|
|
|
|
<LinearLayout
|
2026-01-23 09:15:10 +08:00
|
|
|
android:layout_width="wrap_content"
|
2026-01-26 00:55:21 +08:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnEdit"
|
|
|
|
|
android:layout_width="40dp"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:insetLeft="0dp"
|
|
|
|
|
android:insetTop="0dp"
|
|
|
|
|
android:insetRight="0dp"
|
|
|
|
|
android:insetBottom="0dp"
|
|
|
|
|
app:icon="@drawable/ic_edit"
|
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
|
app:iconSize="20dp"
|
|
|
|
|
app:iconTint="@color/text_secondary_modern"
|
|
|
|
|
app:cornerRadius="20dp"
|
|
|
|
|
app:backgroundTint="@color/bg_secondary_modern"
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnDelete"
|
|
|
|
|
android:layout_width="40dp"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:insetLeft="0dp"
|
|
|
|
|
android:insetTop="0dp"
|
|
|
|
|
android:insetRight="0dp"
|
|
|
|
|
android:insetBottom="0dp"
|
|
|
|
|
app:icon="@drawable/ic_delete"
|
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
|
app:iconSize="20dp"
|
|
|
|
|
app:iconTint="@color/status_error_text"
|
|
|
|
|
app:cornerRadius="20dp"
|
|
|
|
|
app:backgroundTint="@color/status_error_bg"
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnSwitch"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
|
android:text="使用"
|
|
|
|
|
android:textSize="@dimen/text_size_xs"
|
|
|
|
|
app:cornerRadius="@dimen/corner_radius_pill"
|
|
|
|
|
app:backgroundTint="@color/sky_blue_primary"
|
|
|
|
|
style="@style/Widget.Material3.Button" />
|
2026-01-23 09:15:10 +08:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2026-01-23 09:15:10 +08:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
2026-01-26 00:55:21 +08:00
|
|
|
</com.google.android.material.card.MaterialCardView>
|