147 lines
5.3 KiB
XML
147 lines
5.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/set"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/background_light"
|
|
android:orientation="vertical">
|
|
|
|
<!-- 顶部操作栏:返回+标题+收藏 -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:gravity="center_vertical"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/back"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:padding="8dp"
|
|
android:src="@mipmap/back"
|
|
android:background="@drawable/shape_circle_click_light" />
|
|
|
|
<com.flowing.light.board.tools.CustomTextView
|
|
android:id="@+id/textview_data_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center"
|
|
android:text="@string/app_name"
|
|
android:textColor="@color/black"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
app:apply_font="true" />
|
|
|
|
<ImageView
|
|
android:id="@+id/im_like"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:padding="8dp"
|
|
android:src="@drawable/selector_love_light"
|
|
android:background="@drawable/shape_circle_click_light" />
|
|
</LinearLayout>
|
|
|
|
<!-- 中间预览区:带阴影卡片+大图预览 -->
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="280dp"
|
|
android:layout_margin="24dp"
|
|
android:layout_gravity="center_horizontal">
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:cardBackgroundColor="@color/white"
|
|
app:cardCornerRadius="20dp"
|
|
app:cardElevation="8dp"
|
|
app:cardUseCompatPadding="true">
|
|
|
|
<ImageView
|
|
android:id="@+id/image_data"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:background="@color/gray" />
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<!-- 预览图顶部渐变遮罩 -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@drawable/gradient_top_mask_light"
|
|
android:orientation="vertical">
|
|
</LinearLayout>
|
|
</FrameLayout>
|
|
|
|
<!-- 底部功能区:下载/应用按钮 -->
|
|
<LinearLayout
|
|
android:id="@+id/layoutDownloadApply"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="56dp"
|
|
android:layout_marginHorizontal="32dp"
|
|
android:layout_marginTop="16dp"
|
|
android:background="@drawable/shape_rounded_button_light"
|
|
android:gravity="center"
|
|
android:backgroundTint="@color/set_btn"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/im_download"
|
|
android:layout_width="28dp"
|
|
android:layout_height="28dp"
|
|
android:src="@mipmap/download" />
|
|
|
|
<com.flowing.light.board.tools.CustomTextView
|
|
android:id="@+id/tv_download"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:text="@string/download_apply"
|
|
android:textColor="@color/white"
|
|
android:textSize="17sp"
|
|
android:textStyle="bold"
|
|
app:apply_font="true" />
|
|
</LinearLayout>
|
|
|
|
<!-- 推荐标题 -->
|
|
<com.flowing.light.board.tools.CustomTextView
|
|
android:id="@+id/text_for_you"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_marginTop="40dp"
|
|
android:text="@string/recommended"
|
|
android:textColor="@color/black"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold"
|
|
app:apply_font="true" />
|
|
|
|
<!-- 推荐列表:横向滚动 -->
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recommended_recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="160dp"
|
|
android:layout_marginTop="16dp"
|
|
android:paddingStart="20dp"
|
|
android:clipToPadding="false" />
|
|
|
|
<!-- 加载中遮罩 -->
|
|
<FrameLayout
|
|
android:id="@+id/loading"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/black_transparent_50"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:visibility="gone">
|
|
|
|
<ProgressBar
|
|
android:layout_width="60dp"
|
|
android:layout_height="60dp"
|
|
android:layout_gravity="center"
|
|
android:indeterminateTint="@color/white"
|
|
android:background="@drawable/start_pb_drawable_light" />
|
|
</FrameLayout>
|
|
</LinearLayout> |