150 lines
5.7 KiB
XML
150 lines
5.7 KiB
XML
<?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"
|
||
|
|
android:layout_marginBottom="12dp"
|
||
|
|
app:cardElevation="2dp"
|
||
|
|
app:cardCornerRadius="16dp"
|
||
|
|
android:clickable="true"
|
||
|
|
android:focusable="true">
|
||
|
|
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:orientation="vertical"
|
||
|
|
android:padding="16dp">
|
||
|
|
|
||
|
|
<!-- 相册名称和状态 -->
|
||
|
|
<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="相册名称"
|
||
|
|
android:textSize="18sp"
|
||
|
|
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="当前"
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:textColor="@color/white"
|
||
|
|
android:paddingStart="8dp"
|
||
|
|
android:paddingEnd="8dp"
|
||
|
|
android:paddingTop="4dp"
|
||
|
|
android:paddingBottom="4dp"
|
||
|
|
android:background="@drawable/badge_background"
|
||
|
|
android:layout_marginStart="8dp"
|
||
|
|
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 张图片"
|
||
|
|
android:textSize="14sp"
|
||
|
|
android:textColor="@color/text_secondary"
|
||
|
|
android:layout_marginTop="8dp" />
|
||
|
|
|
||
|
|
<!-- 配置信息 -->
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="8dp"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvPlayMode"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="顺序"
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:textColor="@color/text_hint"
|
||
|
|
android:drawableStart="@drawable/ic_repeat"
|
||
|
|
android:drawablePadding="4dp" />
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:id="@+id/tvInterval"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:text="30 分钟"
|
||
|
|
android:textSize="12sp"
|
||
|
|
android:textColor="@color/text_hint"
|
||
|
|
android:layout_marginStart="16dp"
|
||
|
|
android:drawableStart="@drawable/ic_schedule"
|
||
|
|
android:drawablePadding="4dp" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<!-- 操作按钮 -->
|
||
|
|
<LinearLayout
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_marginTop="12dp"
|
||
|
|
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="编辑"
|
||
|
|
android:textSize="14sp"
|
||
|
|
android:layout_marginEnd="8dp"
|
||
|
|
app:icon="@drawable/ic_edit"
|
||
|
|
app:iconGravity="textStart"
|
||
|
|
app:iconPadding="4dp"
|
||
|
|
app:cornerRadius="8dp"
|
||
|
|
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="切换"
|
||
|
|
android:textSize="14sp"
|
||
|
|
android:layout_marginEnd="8dp"
|
||
|
|
app:icon="@drawable/ic_swap_horiz"
|
||
|
|
app:iconGravity="textStart"
|
||
|
|
app:iconPadding="4dp"
|
||
|
|
app:cornerRadius="8dp"
|
||
|
|
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="删除"
|
||
|
|
android:textSize="14sp"
|
||
|
|
app:icon="@drawable/ic_delete"
|
||
|
|
app:iconGravity="textStart"
|
||
|
|
app:iconPadding="4dp"
|
||
|
|
app:cornerRadius="8dp"
|
||
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
||
|
|
android:textColor="@color/error"
|
||
|
|
app:iconTint="@color/error"
|
||
|
|
app:strokeColor="@color/error" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</com.google.android.material.card.MaterialCardView>
|