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
<?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:key="button_configuration"
        android:icon="@drawable/ic_smart_button"
        android:title="@string/pref_title_physical_buttons"
        android:summary="@string/pref_summary_physical_buttons">
        <ListPreference
            android:defaultValue="weatherApp"
            android:entries="@array/pref_hybridhr_buttonfunctions"
            android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
            android:key="button_1_function_short"
            android:summary="%s"
            android:title="@string/pref_title_upper_button_function_short" />
        <ListPreference
            android:defaultValue="weatherApp"
            android:entries="@array/pref_hybridhr_buttonfunctions"
            android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
            android:key="button_1_function_long"
            android:summary="%s"
            android:title="@string/pref_title_upper_button_function_long" />
        <ListPreference
            android:defaultValue="commuteApp"
            android:entries="@array/pref_hybridhr_buttonfunctions"
            android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
            android:key="button_2_function_short"
            android:summary="%s"
            android:title="@string/pref_title_middle_button_function_short" />
        <Preference
            android:selectable="false"
            android:persistent="false"
            android:key="button_2_function_long"
            android:summary="@string/menuitem_menu"
            android:title="@string/pref_title_middle_button_function_long" />
        <ListPreference
            android:defaultValue="musicApp"
            android:entries="@array/pref_hybridhr_buttonfunctions"
            android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
            android:key="button_3_function_short"
            android:summary="%s"
            android:title="@string/pref_title_lower_button_function_short" />
        <ListPreference
            android:defaultValue="musicApp"
            android:entries="@array/pref_hybridhr_buttonfunctions"
            android:entryValues="@array/pref_hybridhr_buttonfunctions_values"
            android:key="button_3_function_long"
            android:summary="%s"
            android:title="@string/pref_title_lower_button_function_long" />
        <Preference
            android:selectable="false"
            android:persistent="false"
            android:key="button_1_function_long_warning"
            android:summary="@string/fossil_hr_button_config_info" />
    </PreferenceScreen>
 
    <Preference
            android:title="@string/qhybrid_pref_title_actions"
            android:icon="@drawable/ic_pending_actions"
            android:summary="@string/qhybrid_pref_summary_actions">
                <intent
                    android:targetPackage="@string/applicationId"
                    android:targetClass="nodomain.freeyourgadget.gadgetbridge.devices.qhybrid.CommuteActionsActivity" />
    </Preference>
 
</androidx.preference.PreferenceScreen>