<?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="@color/gray_bg"
|
android:orientation="vertical">
|
|
<include layout="@layout/include_head" />
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="15dp">
|
|
<!-- Advanced Settings Section -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@drawable/bg_card"
|
android:orientation="vertical"
|
android:padding="20dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="20dp"
|
android:text="高级设置"
|
android:textColor="@color/base_text"
|
android:textSize="18sp"
|
android:textStyle="bold" />
|
|
<!-- Mainboard Version Row -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:layout_marginBottom="25dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="10dp">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="主板版本"
|
android:textColor="@color/base_text"
|
android:textSize="15sp"
|
android:textStyle="bold"/>
|
<TextView
|
android:id="@+id/tv_mainboard_status"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text=""
|
android:textSize="14sp"
|
android:layout_marginLeft="10dp"/>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<EditText
|
android:id="@+id/et_mainboard_version"
|
android:layout_width="0dp"
|
android:layout_height="48dp"
|
android:layout_weight="1"
|
android:background="@drawable/bg_input_field"
|
android:paddingStart="10dp"
|
android:paddingEnd="10dp"
|
android:hint="10-10-1961-01"
|
android:enabled="false"
|
android:textColor="@color/base_text"
|
android:textSize="14sp"
|
android:layout_marginRight="10dp"/>
|
|
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
android:id="@+id/btn_mainboard_read"
|
android:layout_width="80dp"
|
android:layout_height="45dp"
|
android:text="读取"
|
android:textColor="@color/white"
|
android:textSize="14sp"
|
app:qmui_backgroundColor="@color/base_color"
|
app:qmui_radius="8dp"/>
|
</LinearLayout>
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@color/gray_line"
|
android:layout_marginBottom="20dp"/>
|
|
<!-- Display Version Row -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:layout_marginBottom="25dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="10dp">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="显示屏版本"
|
android:textColor="@color/base_text"
|
android:textSize="15sp"
|
android:textStyle="bold"/>
|
<TextView
|
android:id="@+id/tv_sensor_status"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text=""
|
android:textSize="14sp"
|
android:layout_marginLeft="10dp"/>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<EditText
|
android:id="@+id/et_display_version"
|
android:layout_width="0dp"
|
android:layout_height="48dp"
|
android:layout_weight="1"
|
android:background="@drawable/bg_input_field"
|
android:paddingStart="10dp"
|
android:paddingEnd="10dp"
|
android:hint="10-10-1962-01"
|
android:enabled="false"
|
android:textColor="@android:color/black"
|
android:textSize="14sp"
|
android:layout_marginRight="10dp"/>
|
|
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
android:id="@+id/btn_display_read"
|
android:layout_width="80dp"
|
android:layout_height="45dp"
|
android:text="读取"
|
android:textColor="@color/white"
|
android:textSize="14sp"
|
app:qmui_backgroundColor="@color/base_color"
|
app:qmui_radius="8dp"/>
|
</LinearLayout>
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="@color/gray_line"
|
android:layout_marginBottom="20dp"/>
|
|
<!-- Addressing Buttons -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:gravity="center">
|
|
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
android:id="@+id/btn_start_addressing"
|
android:layout_width="0dp"
|
android:layout_height="45dp"
|
android:layout_weight="1"
|
android:text="开始编址"
|
android:textColor="@color/white"
|
android:textSize="14sp"
|
app:qmui_backgroundColor="@color/base_color"
|
app:qmui_radius="8dp"
|
android:layout_marginRight="15dp"/>
|
|
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
android:id="@+id/btn_end_addressing"
|
android:layout_width="0dp"
|
android:layout_height="45dp"
|
android:layout_weight="1"
|
android:text="结束编址"
|
android:textColor="@color/white"
|
android:textSize="14sp"
|
app:qmui_backgroundColor="@color/base_color"
|
app:qmui_radius="8dp"/>
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<!-- Log Display -->
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:cardCornerRadius="12dp"
|
app:cardElevation="2dp"
|
app:cardBackgroundColor="@color/white"
|
android:layout_marginTop="16dp"
|
android:layout_marginBottom="24dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
|
<!-- Card Header -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:gravity="center_vertical"
|
android:padding="16dp"
|
android:background="#FAFAFA">
|
|
<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="16sp"
|
android:textStyle="bold"
|
android:textColor="#333333" />
|
|
<com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton
|
android:id="@+id/btn_clear_log"
|
android:layout_width="wrap_content"
|
android:layout_height="32dp"
|
android:text="清空"
|
android:textColor="@color/white"
|
android:textSize="12sp"
|
android:paddingStart="12dp"
|
android:paddingEnd="12dp"
|
app:qmui_backgroundColor="#FF5252"
|
app:qmui_radius="4dp"/>
|
</LinearLayout>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1dp"
|
android:background="#EEEEEE"/>
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="200dp"
|
android:padding="12dp"
|
android:background="#FAFAFA">
|
|
<TextView
|
android:id="@+id/tv_log"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="等待操作..."
|
android:textColor="#333333"
|
android:textSize="12sp"
|
android:fontFamily="monospace"
|
android:lineSpacingExtra="4dp"/>
|
</ScrollView>
|
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|
</ScrollView>
|
</LinearLayout>
|