128 lines
4.9 KiB
XML
128 lines
4.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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:fitsSystemWindows="false">
|
|
|
|
<!-- 顶部沉浸式背景图片 - 延伸到状态栏 -->
|
|
<ImageView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="fitXY"
|
|
android:src="@mipmap/index_top_bg" />
|
|
|
|
<!-- 内容区域 -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true"
|
|
android:orientation="vertical">
|
|
|
|
<!-- 顶部标题栏区域 - 添加状态栏高度的内边距 -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="@dimen/dp_15"
|
|
android:paddingTop="@dimen/dp_48"
|
|
android:paddingBottom="@dimen/dp_10">
|
|
|
|
<!-- Logo和标题区域 -->
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/img_logo"
|
|
android:layout_width="@dimen/dp_153"
|
|
android:layout_height="@dimen/dp_48"
|
|
android:src="@mipmap/icon_index_title_logo" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- 右侧按钮区域 -->
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/img_scan"
|
|
android:layout_width="@dimen/dp_38"
|
|
android:layout_height="@dimen/dp_38"
|
|
android:src="@mipmap/icon_scan_device" />
|
|
|
|
<ImageView
|
|
android:id="@+id/img_add"
|
|
android:layout_width="@dimen/dp_40"
|
|
android:layout_height="@dimen/dp_40"
|
|
android:layout_marginLeft="@dimen/dp_10"
|
|
android:src="@mipmap/icon_add_device" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<!-- 页面标题 -->
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/dp_15"
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
android:text="设备"
|
|
android:textColor="@color/color_333333"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
|
android:id="@+id/refresh"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<!-- 设备列表区域 -->
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rv_devices"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:clipToPadding="false"
|
|
android:paddingHorizontal="@dimen/dp_15"
|
|
android:paddingBottom="@dimen/dp_20"
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
tools:listitem="@layout/index_device_list_item" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rel_no_more"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone" >
|
|
<include
|
|
android:id="@+id/lay_no_more"
|
|
layout="@layout/layout_no_more"/>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
<RelativeLayout
|
|
android:id="@+id/rel_noresult"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="gone">
|
|
<include
|
|
android:id="@+id/included_noresult"
|
|
layout="@layout/include_no_result_layout"/>
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</FrameLayout>
|