zhuguifei
2026-01-14 b7ee99a71e88a08a09fe9daada6675a175d09be1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<?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>