57 lines
2.1 KiB
XML
57 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|||
|
|
<androidx.core.widget.NestedScrollView
|
||
|
|
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="match_parent"
|
||
|
|
android:background="@color/background"
|
||
|
|
android:fillViewport="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:layout_marginBottom="16dp"
|
||
|
|
android:orientation="horizontal">
|
||
|
|
|
||
|
|
<TextView
|
||
|
|
android:layout_width="0dp"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:layout_weight="1"
|
||
|
|
android:text="相册管理"
|
||
|
|
android:textSize="24sp"
|
||
|
|
android:textStyle="bold"
|
||
|
|
android:textColor="@color/text_primary" />
|
||
|
|
|
||
|
|
<com.google.android.material.button.MaterialButton
|
||
|
|
android:id="@+id/btnCreateAlbum"
|
||
|
|
android:layout_width="wrap_content"
|
||
|
|
android:layout_height="48dp"
|
||
|
|
android:text="+ 新建"
|
||
|
|
android:textSize="14sp"
|
||
|
|
app:icon="@drawable/ic_add"
|
||
|
|
app:iconGravity="textStart"
|
||
|
|
app:cornerRadius="12dp"
|
||
|
|
style="@style/Widget.Material3.Button.TonalButton" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
<!-- 相册列表 -->
|
||
|
|
<androidx.recyclerview.widget.RecyclerView
|
||
|
|
android:id="@+id/rvAlbums"
|
||
|
|
android:layout_width="match_parent"
|
||
|
|
android:layout_height="wrap_content"
|
||
|
|
android:nestedScrollingEnabled="false"
|
||
|
|
tools:listitem="@layout/item_album_card" />
|
||
|
|
|
||
|
|
</LinearLayout>
|
||
|
|
|
||
|
|
</androidx.core.widget.NestedScrollView>
|