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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?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:key="pref_key_dashboard_general"
        android:title="@string/pref_header_general"
        app:iconSpaceReserved="false">
        <SwitchPreferenceCompat
            android:defaultValue="true"
            android:key="dashboard_as_default_view"
            android:layout="@layout/preference_checkbox"
            android:title="@string/pref_dashboard_first_title"
            android:summary="@string/pref_dashboard_first_summary"
            app:iconSpaceReserved="false" />
        <SwitchPreferenceCompat
            android:defaultValue="true"
            android:key="dashboard_cards_enabled"
            android:layout="@layout/preference_checkbox"
            android:title="@string/pref_dashboard_cards_title"
            android:summary="@string/pref_dashboard_cards_summary"
            app:iconSpaceReserved="false" />
        <com.mobeta.android.dslv.DragSortListPreference
            android:defaultValue="@array/pref_dashboard_widgets_order_default"
            android:dialogTitle="@string/menuitem_widgets"
            android:entries="@array/pref_dashboard_widgets_order"
            android:entryValues="@array/pref_dashboard_widgets_order_values"
            android:key="pref_dashboard_widgets_order"
            android:persistent="true"
            android:summary="@string/pref_dashboard_widgets_order_summary"
            android:title="@string/menuitem_widgets"
            app:iconSpaceReserved="false" />
    </PreferenceCategory>
 
    <PreferenceCategory
        android:key="pref_key_dashboard_widgets"
        android:title="@string/pref_dashboard_widget_settings"
        app:iconSpaceReserved="false">
        <PreferenceScreen
            android:key="pref_key_dashboard_today"
            android:title="@string/pref_dashboard_widget_today_title"
            app:iconSpaceReserved="false">
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="dashboard_widget_today_24h"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_dashboard_widget_today_24h_title"
                android:summary="@string/pref_dashboard_widget_today_24h_summary"
                app:iconSpaceReserved="false" />
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="dashboard_widget_today_24h_upside_down"
                android:dependency="dashboard_widget_today_24h"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_dashboard_widget_today_upside_down_title"
                android:summary="@string/pref_dashboard_widget_today_upside_down_summary"
                app:iconSpaceReserved="false" />
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="dashboard_widget_today_show_yesterday"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_dashboard_widget_today_yesterday_data_title"
                android:summary="@string/pref_dashboard_widget_today_yesterday_data_summary"
                app:iconSpaceReserved="false" />
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="dashboard_widget_today_time_indicator"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_dashboard_widget_today_time_indicator_title"
                android:summary="@string/pref_dashboard_widget_today_time_indicator_summary"
                app:iconSpaceReserved="false" />
            <SwitchPreferenceCompat
                android:defaultValue="true"
                android:key="dashboard_widget_today_2columns"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_dashboard_widget_double_size_title"
                android:summary="@string/pref_dashboard_widget_double_size_summary"
                app:iconSpaceReserved="false" />
            <SwitchPreferenceCompat
                android:defaultValue="true"
                android:key="dashboard_widget_today_legend"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_dashboard_widget_show_legend_title"
                android:summary="@string/pref_dashboard_widget_show_legend_summary"
                app:iconSpaceReserved="false" />
            <EditTextPreference
                android:defaultValue="1"
                android:inputType="number"
                android:key="dashboard_widget_today_hr_interval"
                android:maxLength="4"
                android:summary="@string/pref_dashboard_widget_today_hr_interval_summary"
                android:title="@string/pref_dashboard_widget_today_hr_interval_title"
                app:iconSpaceReserved="false" />
        </PreferenceScreen>
        <PreferenceScreen
            android:key="pref_key_dashboard_goals"
            android:title="@string/pref_dashboard_widget_goals_chart_title"
            app:iconSpaceReserved="false">
            <SwitchPreferenceCompat
                android:defaultValue="true"
                android:key="dashboard_widget_goals_2columns"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_dashboard_widget_double_size_title"
                android:summary="@string/pref_dashboard_widget_double_size_summary"
                app:iconSpaceReserved="false" />
            <SwitchPreferenceCompat
                android:defaultValue="true"
                android:key="dashboard_widget_goals_legend"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_dashboard_widget_show_legend_title"
                android:summary="@string/pref_dashboard_widget_show_legend_summary"
                app:iconSpaceReserved="false" />
        </PreferenceScreen>
    </PreferenceCategory>
 
    <PreferenceCategory
        android:key="pref_key_dashboard_devices"
        android:title="@string/pref_dashboard_devices_to_include"
        app:iconSpaceReserved="false">
        <SwitchPreferenceCompat
            android:defaultValue="true"
            android:key="dashboard_devices_all"
            android:layout="@layout/preference_checkbox"
            android:title="@string/pref_dashboard_all_devices_title"
            android:summary="@string/pref_dashboard_all_devices_summary"
            android:disableDependentsState="true"
            app:iconSpaceReserved="false" />
        <MultiSelectListPreference
            android:dependency="dashboard_devices_all"
            android:dialogTitle="@string/pref_dashboard_select_devices_title"
            android:entries="@array/empty_array"
            android:entryValues="@array/empty_array"
            android:key="dashboard_devices_multiselect"
            android:title="@string/pref_dashboard_select_devices_title"
            android:summary="@string/pref_dashboard_select_devices_summary"
            app:iconSpaceReserved="false" />
    </PreferenceCategory>
</PreferenceScreen>