|
|
@@ -0,0 +1,744 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout 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">
|
|
|
+
|
|
|
+ <!-- 车辆控制内容(使用 fragment_vehicle.xml 的内容) -->
|
|
|
+ <androidx.core.widget.NestedScrollView
|
|
|
+ android:id="@+id/scrollView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="0dp"
|
|
|
+ android:fillViewport="true"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/bottomNavView"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <!-- 蓝牙连接状态 -->
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="16dp"
|
|
|
+ app:cardCornerRadius="8dp"
|
|
|
+ app:cardElevation="4dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:padding="16dp"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvBluetoothStatus"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="蓝牙未连接"
|
|
|
+ android:textSize="16sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnConnectBluetooth"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="连接" />
|
|
|
+ </LinearLayout>
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ <!-- 实时状态信息 -->
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="16dp"
|
|
|
+ app:cardCornerRadius="8dp"
|
|
|
+ app:cardElevation="4dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="实时状态"
|
|
|
+ android:textSize="18sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:layout_marginBottom="12dp" />
|
|
|
+
|
|
|
+ <GridLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:columnCount="2"
|
|
|
+ android:rowCount="4">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_columnWeight="1"
|
|
|
+ android:text="设防状态:"
|
|
|
+ android:layout_marginEnd="8dp" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvDefenseStatus"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_columnWeight="1"
|
|
|
+ android:text="未知" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_columnWeight="1"
|
|
|
+ android:text="上电状态:"
|
|
|
+ android:layout_marginEnd="8dp" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvPowerStatus"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_columnWeight="1"
|
|
|
+ android:text="未知" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_columnWeight="1"
|
|
|
+ android:text="门锁状态:"
|
|
|
+ android:layout_marginEnd="8dp" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvDoorLockStatus"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_columnWeight="1"
|
|
|
+ android:text="未知" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_columnWeight="1"
|
|
|
+ android:text="电池电量:"
|
|
|
+ android:layout_marginEnd="8dp" />
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tvBatteryLevel"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_columnWeight="1"
|
|
|
+ android:text="未知" />
|
|
|
+ </GridLayout>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnQueryVehicleInfo"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="12dp"
|
|
|
+ android:text="查询车辆信息" />
|
|
|
+ </LinearLayout>
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ <!-- 快捷控制 -->
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="16dp"
|
|
|
+ app:cardCornerRadius="8dp"
|
|
|
+ app:cardElevation="4dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="快捷控制"
|
|
|
+ android:textSize="18sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:layout_marginBottom="12dp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnDefense"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:text="设防" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnPower"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:text="上电" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnFindCar"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="寻车" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnSeatLock"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:text="座桶锁" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnHandlebarLock"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_marginEnd="8dp"
|
|
|
+ android:text="龙头锁" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnTrunkLock"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="尾箱锁" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ <!-- 系统控制 -->
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="16dp"
|
|
|
+ app:cardCornerRadius="8dp"
|
|
|
+ app:cardElevation="4dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="系统控制"
|
|
|
+ android:textSize="18sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:layout_marginBottom="12dp" />
|
|
|
+
|
|
|
+ <!-- 开关类控制 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp">
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switchInductionUnlock"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="感应解锁" />
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switchTheftLock"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="被盗锁定" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp">
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switchSeatSensor"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="座椅感应" />
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switchVehicleSound"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="车辆音效" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp">
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switchAutoHeadlight"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="自动大灯" />
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switchAtmosphereLight"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="氛围灯" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp">
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switchVoiceBroadcast"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="语音播报" />
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switchFollowMeHome"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="伴我回家" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp">
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switchABS"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="ABS" />
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switchTCS"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="TCS" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 时间设置 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="自动下电时间(秒):" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/etAutoPowerOffTime"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:inputType="number"
|
|
|
+ android:hint="300" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnSetAutoPowerOffTime"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="设置" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="自动设防时间(秒):" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/etAutoDefenseTime"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:inputType="number"
|
|
|
+ android:hint="5" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnSetAutoDefenseTime"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="设置" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="进入P档时间(秒):" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/etEnterPTime"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:inputType="number"
|
|
|
+ android:hint="300" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnSetEnterPTime"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="设置" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 其他设置 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="蓝牙音箱音量(%):" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/etBluetoothSpeakerVolume"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:inputType="number"
|
|
|
+ android:hint="50" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnSetBluetoothSpeakerVolume"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="设置" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="低电量报警阈值(%):" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/etLowBatteryThreshold"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:inputType="number"
|
|
|
+ android:hint="20" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnSetLowBatteryThreshold"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="设置" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 氛围灯颜色设置 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="氛围灯颜色:" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/etAtmosphereLightR"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:inputType="number"
|
|
|
+ android:hint="R(0-255)"
|
|
|
+ android:layout_marginEnd="4dp" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/etAtmosphereLightG"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:inputType="number"
|
|
|
+ android:hint="G(0-255)"
|
|
|
+ android:layout_marginEnd="4dp" />
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/etAtmosphereLightB"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:inputType="number"
|
|
|
+ android:hint="B(0-255)" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnSetAtmosphereLightColor"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="设置" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 感应解锁RSSI信号强度采集 -->
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnCollectRSSI"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:text="感应解锁RSSI信号强度采集" />
|
|
|
+
|
|
|
+ <!-- 小计里程清零 -->
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnResetTripMileage"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="小计里程清零" />
|
|
|
+ </LinearLayout>
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ <!-- 系统设置 -->
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:cardCornerRadius="8dp"
|
|
|
+ app:cardElevation="4dp">
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="16dp">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="系统设置"
|
|
|
+ android:textSize="18sp"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:layout_marginBottom="12dp" />
|
|
|
+
|
|
|
+ <!-- 钥匙学码 -->
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnKeyLearning"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:text="钥匙学码" />
|
|
|
+
|
|
|
+ <!-- 震动灵敏度 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="震动灵敏度:" />
|
|
|
+
|
|
|
+ <RadioGroup
|
|
|
+ android:id="@+id/rgVibrationSensitivity"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/rbSensitivity1"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="1" />
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/rbSensitivity2"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="2" />
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/rbSensitivity3"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="3" />
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/rbSensitivity4"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="4" />
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/rbSensitivity5"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="5" />
|
|
|
+ </RadioGroup>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnSetVibrationSensitivity"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="设置" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 报警开关 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_marginBottom="8dp"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="报警是否上报:" />
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switchAlarmReport"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <!-- 倾倒报警阈值 -->
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:gravity="center_vertical">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="倾倒报警阈值:" />
|
|
|
+
|
|
|
+ <RadioGroup
|
|
|
+ android:id="@+id/rgTiltAlarmThreshold"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="2"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/rbTilt50"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="50°" />
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/rbTilt60"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="60°" />
|
|
|
+
|
|
|
+ <RadioButton
|
|
|
+ android:id="@+id/rbTilt70"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:text="70°" />
|
|
|
+ </RadioGroup>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btnSetTiltAlarmThreshold"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:text="设置" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </androidx.cardview.widget.CardView>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+ </androidx.core.widget.NestedScrollView>
|
|
|
+
|
|
|
+ <!-- 底部导航栏 -->
|
|
|
+ <com.google.android.material.bottomnavigation.BottomNavigationView
|
|
|
+ android:id="@+id/bottomNavView"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="?android:attr/windowBackground"
|
|
|
+ app:itemIconTint="@android:color/black"
|
|
|
+ app:itemTextColor="@android:color/black"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintLeft_toLeftOf="parent"
|
|
|
+ app:layout_constraintRight_toRightOf="parent"
|
|
|
+ app:menu="@menu/bottom_navigation_menu" />
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|