wangzhibo
4 天以前 ae6f40460dcd56af6c5f60ba52c883854c3bac55
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
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <PreferenceScreen
        android:icon="@drawable/ic_vibration"
        android:key="pref_category_notifications_and_calls"
        android:title="@string/pref_header_notifications_and_calls">
            <PreferenceCategory
                android:title="@string/pref_screen_notification_profile_incoming_call"/>
                <SeekBarPreference
                    android:icon="@drawable/ic_rotate_left"
                    android:defaultValue="0"
                    android:key="notification_repeat_ring"
                    android:max="10"
                    android:title="@string/pref_title_notifications_and_calls_repeat_on_call"
                    app:showSeekBarValue="true" />
                <SwitchPreferenceCompat
                    android:defaultValue="false"
                    android:key="notification_enable_continious_ring"
                    android:layout="@layout/preference_checkbox"
                    android:title="@string/prefs_notifications_and_calls_continious_ring" />
            <PreferenceCategory
                android:title="@string/pref_screen_notification_profile_missed_call"/>
                <SwitchPreferenceCompat
                    android:defaultValue="false"
                    android:key="notification_enable_missed_call"
                    android:layout="@layout/preference_checkbox"
                    android:title="@string/pref_notifications_and_calls_enable_misscall"
                    android:summary="@string/pref_summary_notifications_and_calls_enable_misscall"/>
                <SeekBarPreference
                    android:icon="@drawable/ic_rotate_left"
                    android:defaultValue="0"
                    android:dependency="notification_enable_missed_call"
                    android:key="notification_repeat_missed_call"
                    android:max="10"
                    android:title="@string/pref_title_notifications_and_calls_repeat_on_misscall"
                    app:showSeekBarValue="true" />
            <PreferenceCategory
                android:title="@string/pref_header_notifications_and_calls_callhandling"/>
                <SwitchPreferenceCompat
                    android:defaultValue="false"
                    android:key="notification_button_reject"
                    android:layout="@layout/preference_checkbox"
                    android:summary="@string/pref_summary_notifications_and_calls_title_reject"
                    android:title="@string/prefs_notifications_and_calls_reject" />
                <SwitchPreferenceCompat
                    android:defaultValue="false"
                    android:key="notification_shake_reject"
                    android:layout="@layout/preference_checkbox"
                    android:summary="@string/pref_summary_notifications_and_calls_title_shake_reject"
                    android:title="@string/prefs_notifications_and_calls_shake_reject" />
    </PreferenceScreen>
 
    <PreferenceScreen
        android:icon="@drawable/ic_settings"
        android:key="pref_category_device_spec_settings"
        android:title="@string/pref_header_device_spec_settings">
        <ListPreference
            android:icon="@drawable/ic_language"
            android:defaultValue="1"
            android:title="@string/pref_title_language"
            android:entries="@array/language_only_EN_CH"
            android:entryValues="@array/language_only_EN_CH_values"
            android:key="language"
            android:summary="%s" />
        <SwitchPreferenceCompat
            android:icon="@drawable/ic_access_time"
            android:defaultValue="false"
            android:key="pref_device_spec_settings_force_time"
            android:layout="@layout/preference_checkbox"
            android:summary="@string/pref_summary_device_spec_settings_title_force_time"
            android:title="@string/pref_title_device_spec_settings_force_time" />
        <SwitchPreferenceCompat
            android:defaultValue="false"
            android:key="show_raw_graph"
            android:layout="@layout/preference_checkbox"
            android:title="@string/pref_title_device_spec_settings_show_raw_graph" />
    </PreferenceScreen>
    <PreferenceScreen
        android:icon="@drawable/ic_sensor_calibration"
        android:key="pref_sensors_calibration"
        android:title="@string/pref_header_sensors_calibration">
        <EditTextPreference
            android:icon="@drawable/ic_arrow_upward"
            android:defaultValue="200"
            android:key="pref_sensors_altitude"
            android:title="@string/pref_title_sensors_altitude"/>
        <PreferenceScreen
            android:key="pref_sensors_bp_calibration"
            android:title="@string/pref_sensors_bp_calibration">
            <PreferenceCategory
                android:title="@string/pref_sensors_bp_calibration"/>
            <EditTextPreference
                android:inputType="number"
                android:key="pref_sensors_bp_calibration_high"
                android:defaultValue="130"
                android:title="@string/pref_sensors_bp_calibration_high" />
            <EditTextPreference
                android:inputType="number"
                android:key="pref_sensors_bp_calibration_low"
                android:defaultValue="80"
                android:title="@string/pref_sensors_bp_calibration_low" />
            <ListPreference
                android:defaultValue="1"
                android:title="@string/prefs_sensors_button_bp_calibration"
                android:entries="@array/sensors_bp_cal"
                android:entryValues="@array/sensors_bp_cal_values"
                android:key="prefs_sensors_button_bp_calibration"
                android:summary="@string/prefs_sensors_button_bp_calibration_sum" />
        </PreferenceScreen>
    </PreferenceScreen>
</androidx.preference.PreferenceScreen>