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
113
114
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
 
    <PreferenceCategory
        android:title="@string/watchface_setting_title_display_refresh_timeout"
        app:iconSpaceReserved="false">
 
        <EditTextPreference
            android:key="pref_hybridhr_watchface_refresh_full"
            android:persistent="false"
            android:title="@string/watchface_setting_display_refresh_full"
            app:iconSpaceReserved="false" />
        <EditTextPreference
            android:key="pref_hybridhr_watchface_refresh_partial"
            android:persistent="false"
            android:title="@string/watchface_setting_display_refresh_partial"
            app:iconSpaceReserved="false" />
 
    </PreferenceCategory>
 
    <PreferenceCategory
        android:title="@string/watchface_setting_title_wrist_flick"
        app:iconSpaceReserved="false">
 
        <Preference
            android:enabled="false"
            android:selectable="false"
            android:singleLineTitle="false"
            android:title="@string/watchface_setting_desc_wrist_flick"
            app:iconSpaceReserved="false" />
        <SwitchPreferenceCompat
            android:key="pref_hybridhr_watchface_wrist_flick_relative"
            android:layout="@layout/preference_checkbox"
            android:persistent="false"
            android:title="@string/watchface_setting_wrist_flick_move_relative"
            app:iconSpaceReserved="false" />
        <EditTextPreference
            android:key="pref_hybridhr_watchface_wrist_flick_hour_hand"
            android:persistent="false"
            android:title="@string/watchface_setting_wrist_flick_hour"
            app:iconSpaceReserved="false" />
        <EditTextPreference
            android:key="pref_hybridhr_watchface_wrist_flick_minute_hand"
            android:persistent="false"
            android:title="@string/watchface_setting_wrist_flick_minute"
            app:iconSpaceReserved="false" />
        <EditTextPreference
            android:key="pref_hybridhr_watchface_wrist_flick_duration"
            android:persistent="false"
            android:title="@string/watchface_setting_wrist_flick_duration"
            app:iconSpaceReserved="false" />
 
    </PreferenceCategory>
 
    <PreferenceCategory
        android:title="@string/watchface_setting_title_custom_events"
        app:iconSpaceReserved="false">
 
        <ListPreference
            android:dialogTitle="@string/watchface_setting_button_toggle_widgets"
            android:entries="@array/pref_hybridhr_watchface_events_items"
            android:entryValues="@array/pref_hybridhr_watchface_events_values"
            android:key="pref_hybridhr_watchface_toggle_widgets"
            android:negativeButtonText="@string/Cancel"
            android:persistent="false"
            android:title="@string/watchface_setting_button_toggle_widgets"
            app:iconSpaceReserved="false" />
        <ListPreference
            android:dialogTitle="@string/watchface_setting_button_toggle_backlight"
            android:entries="@array/pref_hybridhr_watchface_events_items"
            android:entryValues="@array/pref_hybridhr_watchface_events_values"
            android:key="pref_hybridhr_watchface_toggle_backlight"
            android:negativeButtonText="@string/Cancel"
            android:persistent="false"
            android:title="@string/watchface_setting_button_toggle_backlight"
            app:iconSpaceReserved="false" />
        <ListPreference
            android:dialogTitle="@string/watchface_setting_button_move_hands"
            android:entries="@array/pref_hybridhr_watchface_events_items"
            android:entryValues="@array/pref_hybridhr_watchface_events_values"
            android:key="pref_hybridhr_watchface_move_hands"
            android:negativeButtonText="@string/Cancel"
            android:persistent="false"
            android:title="@string/watchface_setting_button_move_hands"
            app:iconSpaceReserved="false" />
 
    </PreferenceCategory>
 
    <PreferenceCategory
        android:title="@string/watchface_setting_title_power_saving"
        app:iconSpaceReserved="false">
 
        <SwitchPreferenceCompat
            android:key="pref_hybridhr_watchface_power_saving_display"
            android:layout="@layout/preference_checkbox"
            android:persistent="false"
            android:title="@string/watchface_setting_power_saving_display"
            app:iconSpaceReserved="false" />
        <SwitchPreferenceCompat
            android:key="pref_hybridhr_watchface_power_saving_hands"
            android:layout="@layout/preference_checkbox"
            android:persistent="false"
            android:title="@string/watchface_setting_power_saving_hands"
            app:iconSpaceReserved="false" />
        <SwitchPreferenceCompat
            android:key="pref_hybridhr_watchface_light_up_on_notification"
            android:layout="@layout/preference_checkbox"
            android:persistent="false"
            android:title="@string/watchface_setting_light_up_on_notification"
            app:iconSpaceReserved="false" />
 
    </PreferenceCategory>
</PreferenceScreen>