wangzhibo
2026-08-30 af6b816e29ebe329c59cfdd368bf41d2a4940946
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
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/bg">
 
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="16dp">
 
        <androidx.appcompat.widget.SwitchCompat
            android:id="@+id/sw_hr"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:checked="true"
            android:text="心率告警" />
 
        <EditText
            android:id="@+id/et_hr_low"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="心率下限"
            android:inputType="number"
            android:text="50" />
 
        <EditText
            android:id="@+id/et_hr_high"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="心率上限"
            android:inputType="number"
            android:text="140" />
 
        <androidx.appcompat.widget.SwitchCompat
            android:id="@+id/sw_bp"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="16dp"
            android:checked="true"
            android:text="血压告警" />
 
        <EditText
            android:id="@+id/et_bp_high"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="收缩压/高压上限"
            android:inputType="number"
            android:text="140" />
 
        <EditText
            android:id="@+id/et_bp_low"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="舒张压/低压下限"
            android:inputType="number"
            android:text="60" />
 
        <androidx.appcompat.widget.SwitchCompat
            android:id="@+id/sw_spo2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="16dp"
            android:checked="true"
            android:text="血氧过低告警" />
 
        <EditText
            android:id="@+id/et_spo2_low"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:hint="血氧下限(%)"
            android:inputType="numberDecimal"
            android:text="90" />
 
        <androidx.appcompat.widget.SwitchCompat
            android:id="@+id/sw_report_all_day"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="20dp"
            android:text="全天同步健康与位置(关闭则仅上班打卡后同步)" />
 
        <Button
            android:id="@+id/btn_save"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="24dp"
            android:text="保存并写入手表" />
    </LinearLayout>
</ScrollView>