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"
|
|
|
|
|
app:cardElevation="@dimen/card_elevation"
|
|
|
|
|
app:cardCornerRadius="@dimen/corner_radius_md"
|
|
|
|
|
app:cardBackgroundColor="@color/bg_card"
|
|
|
|
|
app:strokeColor="@color/glass_border"
|
|
|
|
|
app:strokeWidth="@dimen/glass_border_width"
|
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-25 14:54:47 +08:00
|
|
|
android:padding="@dimen/card_padding">
|
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">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvAlbumName"
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="相册名称"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:textSize="@dimen/text_size_lg"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:textColor="@color/text_primary"
|
|
|
|
|
android:maxLines="1"
|
|
|
|
|
android:ellipsize="end" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvCurrentBadge"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="当前"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:textSize="@dimen/text_size_xs"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:textColor="@color/white"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:paddingStart="@dimen/spacing_sm"
|
|
|
|
|
android:paddingEnd="@dimen/spacing_sm"
|
|
|
|
|
android:paddingTop="@dimen/spacing_xs"
|
|
|
|
|
android:paddingBottom="@dimen/spacing_xs"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:background="@drawable/badge_background"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:layout_marginStart="@dimen/spacing_sm"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:visibility="gone"
|
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 相册信息 -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvAlbumInfo"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="3 个文件夹 · 120 张图片"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:textSize="@dimen/text_size_sm"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:textColor="@color/text_secondary"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:layout_marginTop="@dimen/spacing_sm" />
|
2026-01-23 09:15:10 +08:00
|
|
|
|
|
|
|
|
<!-- 配置信息 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:layout_marginTop="@dimen/spacing_sm"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvPlayMode"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="顺序"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:textSize="@dimen/text_size_xs"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:textColor="@color/text_hint"
|
|
|
|
|
android:drawableStart="@drawable/ic_repeat"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:drawablePadding="@dimen/spacing_xs" />
|
2026-01-23 09:15:10 +08:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/tvInterval"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="30 分钟"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:textSize="@dimen/text_size_xs"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:textColor="@color/text_hint"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:layout_marginStart="@dimen/spacing_md"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:drawableStart="@drawable/ic_schedule"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:drawablePadding="@dimen/spacing_xs" />
|
2026-01-23 09:15:10 +08:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 操作按钮 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:layout_marginTop="@dimen/spacing_md"
|
2026-01-23 09:15:10 +08:00
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:gravity="end">
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnEdit"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:text="编辑"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:textSize="@dimen/text_size_sm"
|
|
|
|
|
android:layout_marginEnd="@dimen/spacing_sm"
|
2026-01-23 09:15:10 +08:00
|
|
|
app:icon="@drawable/ic_edit"
|
|
|
|
|
app:iconGravity="textStart"
|
2026-01-25 14:54:47 +08:00
|
|
|
app:iconPadding="@dimen/spacing_xs"
|
|
|
|
|
app:cornerRadius="@dimen/corner_radius_sm"
|
|
|
|
|
app:strokeColor="@color/accent_secondary"
|
|
|
|
|
app:strokeWidth="1dp"
|
2026-01-23 09:15:10 +08:00
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnSwitch"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:text="切换"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:textSize="@dimen/text_size_sm"
|
|
|
|
|
android:layout_marginEnd="@dimen/spacing_sm"
|
|
|
|
|
android:backgroundTint="@color/accent_primary"
|
2026-01-23 09:15:10 +08:00
|
|
|
app:icon="@drawable/ic_swap_horiz"
|
|
|
|
|
app:iconGravity="textStart"
|
2026-01-25 14:54:47 +08:00
|
|
|
app:iconPadding="@dimen/spacing_xs"
|
|
|
|
|
app:cornerRadius="@dimen/corner_radius_sm"
|
2026-01-23 09:15:10 +08:00
|
|
|
style="@style/Widget.Material3.Button" />
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
android:id="@+id/btnDelete"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="40dp"
|
|
|
|
|
android:text="删除"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:textSize="@dimen/text_size_sm"
|
2026-01-23 09:15:10 +08:00
|
|
|
app:icon="@drawable/ic_delete"
|
|
|
|
|
app:iconGravity="textStart"
|
2026-01-25 14:54:47 +08:00
|
|
|
app:iconPadding="@dimen/spacing_xs"
|
|
|
|
|
app:cornerRadius="@dimen/corner_radius_sm"
|
2026-01-23 09:15:10 +08:00
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
2026-01-25 14:54:47 +08:00
|
|
|
android:textColor="@color/color_error"
|
|
|
|
|
app:iconTint="@color/color_error"
|
|
|
|
|
app:strokeColor="@color/color_error" />
|
2026-01-23 09:15:10 +08:00
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|