zhuguifei
2026-01-14 b7ee99a71e88a08a09fe9daada6675a175d09be1
app/src/main/res/layout/fragment_device_list.xml
@@ -1,8 +1,48 @@
<?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:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#F5F6FA"
    android:orientation="vertical">
    <!-- Title Header -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/white"
        android:orientation="horizontal"
        android:gravity="center_vertical"
        android:padding="16dp">
        <View
            android:layout_width="4dp"
            android:layout_height="16dp"
            android:background="@color/base_color"
            android:layout_marginEnd="8dp"/>
        <TextView
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="附近设备"
            android:textSize="14sp"
            android:textStyle="bold"
            android:textColor="#999999" />
        <ProgressBar
            android:id="@+id/pb_scanning"
            android:layout_width="16dp"
            android:layout_height="16dp"
            android:layout_marginEnd="8dp"
            android:visibility="gone"
            android:indeterminateTint="@color/base_color"
            style="?android:attr/progressBarStyleSmall" />
    </LinearLayout>
    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="#F0F2F5"/>
    <com.qmuiteam.qmui.widget.QMUIEmptyView
        android:id="@+id/emptyView"
@@ -13,8 +53,10 @@
        android:id="@+id/homeList"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:divider="@color/gray_line"
        android:dividerHeight="1dp"
        android:divider="@null"
        android:dividerHeight="0dp"
        android:clipToPadding="false"
        android:scrollbars="none"
        android:visibility="gone" />
</LinearLayout>