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
<?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_activity_unknown_small"
        android:title="@string/pref_workout_detection_title"
        android:summary="@string/pref_workout_detection_summary"
        android:key="workout_detection_settings">
 
        <PreferenceCategory
            android:key="pref_workout_detection_running"
            android:title="@string/activity_type_running">
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="activity_recognize_running_enabled"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_workout_detection_enabled"
                android:summary="@string/pref_workout_detection_summary"
                android:icon="@drawable/ic_activity_running"/>
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="activity_recognize_running_ask_first"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_workout_detection_ask_first"
                android:summary="@string/pref_workout_detection_ask_first_summary"
                android:icon="@drawable/ic_warning_gray"
                android:dependency="activity_recognize_running_enabled"/>
            <EditTextPreference
                android:defaultValue="3"
                android:inputType="number"
                android:icon="@drawable/ic_timer"
                android:key="activity_recognize_running_minutes"
                android:title="@string/pref_workout_detection_time"
                android:summary="@string/pref_workout_detection_time_summary"
                android:dependency="activity_recognize_running_enabled"/>
        </PreferenceCategory>
 
        <PreferenceCategory
            android:key="pref_workout_detection_biking"
            android:title="@string/activity_type_biking">
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="activity_recognize_biking_enabled"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_workout_detection_enabled"
                android:summary="@string/pref_workout_detection_summary"
                android:icon="@drawable/ic_activity_biking"/>
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="activity_recognize_biking_ask_first"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_workout_detection_ask_first"
                android:summary="@string/pref_workout_detection_ask_first_summary"
                android:icon="@drawable/ic_warning_gray"
                android:dependency="activity_recognize_biking_enabled"/>
            <EditTextPreference
                android:defaultValue="5"
                android:inputType="number"
                android:icon="@drawable/ic_timer"
                android:key="activity_recognize_biking_minutes"
                android:title="@string/pref_workout_detection_time"
                android:summary="@string/pref_workout_detection_time_summary"
                android:dependency="activity_recognize_biking_enabled"/>
        </PreferenceCategory>
 
        <PreferenceCategory
            android:key="pref_workout_detection_walking"
            android:title="@string/activity_type_walking">
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="activity_recognize_walking_enabled"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_workout_detection_enabled"
                android:summary="@string/pref_workout_detection_summary"
                android:icon="@drawable/ic_activity_walking"/>
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="activity_recognize_walking_ask_first"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_workout_detection_ask_first"
                android:summary="@string/pref_workout_detection_ask_first_summary"
                android:icon="@drawable/ic_warning_gray"
                android:dependency="activity_recognize_walking_enabled"/>
            <EditTextPreference
                android:defaultValue="10"
                android:inputType="number"
                android:icon="@drawable/ic_timer"
                android:key="activity_recognize_walking_minutes"
                android:title="@string/pref_workout_detection_time"
                android:summary="@string/pref_workout_detection_time_summary"
                android:dependency="activity_recognize_walking_enabled"/>
        </PreferenceCategory>
 
        <PreferenceCategory
            android:key="pref_workout_detection_rowing"
            android:title="@string/activity_type_rowing">
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="activity_recognize_rowing_enabled"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_workout_detection_enabled"
                android:summary="@string/pref_workout_detection_summary"
                android:icon="@drawable/ic_activity_rowing"/>
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="activity_recognize_rowing_ask_first"
                android:layout="@layout/preference_checkbox"
                android:title="@string/pref_workout_detection_ask_first"
                android:summary="@string/pref_workout_detection_ask_first_summary"
                android:icon="@drawable/ic_warning_gray"
                android:dependency="activity_recognize_rowing_enabled"/>
            <EditTextPreference
                android:defaultValue="3"
                android:inputType="number"
                android:icon="@drawable/ic_timer"
                android:key="activity_recognize_rowing_minutes"
                android:title="@string/pref_workout_detection_time"
                android:summary="@string/pref_workout_detection_time_summary"
                android:dependency="activity_recognize_rowing_enabled"/>
        </PreferenceCategory>
 
    </PreferenceScreen>
 
</androidx.preference.PreferenceScreen>