Files
bzForGk2/app/src/main/res/layout/fragment_album_management.xml
T

58 lines
2.2 KiB
XML
Raw Normal View History

<?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/bg_primary"
android:fillViewport="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/spacing_md">
<!-- 标题栏 -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:layout_marginBottom="@dimen/spacing_lg"
android:orientation="horizontal">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="相册管理"
android:textSize="@dimen/text_size_xxl"
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="@dimen/text_size_sm"
android:backgroundTint="@color/accent_primary"
app:icon="@drawable/ic_add"
app:iconGravity="textStart"
app:cornerRadius="@dimen/corner_radius_md"
style="@style/Widget.Material3.Button" />
</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>