Files
yusheng-android/MainModule/src/main/res/layout/dialog_hourly_chart_fragment.xml
2025-11-07 09:22:39 +08:00

91 lines
4.2 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<layout 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">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent">
<!-- 左侧透明背景用于点击关闭dialog -->
<View
android:id="@+id/view_background"
android:layout_width="0dp"
android:layout_height="match_parent"
android:background="#80000000"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@+id/cl_content"
app:layout_constraintTop_toTopOf="parent"/>
<!-- 右侧内容区域 -->
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_content"
android:layout_width="@dimen/dp_256"
android:layout_height="match_parent"
android:background="#32057F"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent">
<ImageView
android:id="@+id/im_bj"
android:layout_width="match_parent"
android:layout_height="@dimen/dp_281"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:src="@mipmap/hourly_top_bj"
android:scaleType="fitCenter"/>
<TextView
android:id="@+id/tv_hourly_djs"
android:layout_width="@dimen/dp_150"
android:layout_height="@dimen/dp_23"
app:layout_constraintStart_toStartOf="@+id/im_bj"
app:layout_constraintEnd_toEndOf="@+id/im_bj"
android:background="@mipmap/hourly_djs"
app:layout_constraintTop_toTopOf="parent"
android:translationY="@dimen/dp_120"
android:text="榜单时间 10:00-10:59"
android:gravity="center"
android:textColor="@color/color_FFFFFF99"
android:textSize="@dimen/sp_12"/>
<ImageView
android:id="@+id/im_hourly_wf"
android:layout_width="@dimen/dp_24"
android:layout_height="@dimen/dp_24"
android:src="@mipmap/hourly_wh"
android:scaleType="fitCenter"
android:layout_marginEnd="@dimen/dp_10"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginTop="@dimen/dp_40"/>
<com.scwang.smartrefresh.layout.SmartRefreshLayout
android:id="@+id/smart_refresh_layout"
android:layout_width="match_parent"
android:layout_height="0dp"
app:srlEnableLoadMore="true"
app:srlEnableRefresh="true"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/im_bj"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:paddingTop="@dimen/dp_12"
tools:listitem="@layout/item_hourly"
android:paddingBottom="@dimen/dp_12"/>
</com.scwang.smartrefresh.layout.SmartRefreshLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>