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
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceCategory
        android:key="pref_key_header_redmibuds5pro_system"
        android:title="@string/pref_header_system">
 
        <PreferenceScreen
            android:icon="@drawable/ic_touch"
            android:key="pref_screen_redmibuds5pro_touch_options"
            android:persistent="false"
            android:title="@string/prefs_galaxy_touch_options">
 
            <PreferenceCategory android:title="@string/single_tap">
                <ListPreference
                    android:entries="@array/redmi_buds_5_pro_single_button_function_names"
                    android:entryValues="@array/redmi_buds_5_pro_single_button_function_values"
                    android:icon="@drawable/ic_filter_1"
                    android:defaultValue="8"
                    android:key="pref_redmi_buds_5_pro_control_single_tap_left"
                    android:summary="%s"
                    android:title="@string/prefs_left" />
                <ListPreference
                    android:entries="@array/redmi_buds_5_pro_single_button_function_names"
                    android:entryValues="@array/redmi_buds_5_pro_single_button_function_values"
                    android:defaultValue="8"
                    android:key="pref_redmi_buds_5_pro_control_single_tap_right"
                    android:summary="%s"
                    android:title="@string/prefs_right" />
            </PreferenceCategory>
 
            <PreferenceCategory android:title="@string/double_tap">
                <ListPreference
                    android:entries="@array/redmi_buds_5_pro_button_function_names"
                    android:entryValues="@array/redmi_buds_5_pro_button_function_values"
                    android:icon="@drawable/ic_filter_2"
                    android:defaultValue="1"
                    android:key="pref_redmi_buds_5_pro_control_double_tap_left"
                    android:summary="%s"
                    android:title="@string/prefs_left" />
                <ListPreference
                    android:entries="@array/redmi_buds_5_pro_button_function_names"
                    android:entryValues="@array/redmi_buds_5_pro_button_function_values"
                    android:defaultValue="1"
                    android:key="pref_redmi_buds_5_pro_control_double_tap_right"
                    android:summary="%s"
                    android:title="@string/prefs_right" />
            </PreferenceCategory>
 
            <PreferenceCategory android:title="@string/triple_tap">
                <ListPreference
                    android:entries="@array/redmi_buds_5_pro_button_function_names"
                    android:entryValues="@array/redmi_buds_5_pro_button_function_values"
                    android:icon="@drawable/ic_filter_3"
                    android:defaultValue="2"
                    android:key="pref_redmi_buds_5_pro_control_triple_tap_left"
                    android:summary="%s"
                    android:title="@string/prefs_left" />
                <ListPreference
                    android:entries="@array/redmi_buds_5_pro_button_function_names"
                    android:entryValues="@array/redmi_buds_5_pro_button_function_values"
                    android:defaultValue="3"
                    android:key="pref_redmi_buds_5_pro_control_triple_tap_right"
                    android:summary="%s"
                    android:title="@string/prefs_right" />
            </PreferenceCategory>
 
            <PreferenceCategory android:title="@string/long_press">
                <ListPreference
                    android:entries="@array/redmi_buds_5_pro_long_button_mode_names"
                    android:entryValues="@array/redmi_buds_5_pro_long_button_mode_values"
                    android:icon="@drawable/ic_touch"
                    android:defaultValue="6"
                    android:key="pref_redmi_buds_5_pro_control_long_tap_mode_left"
                    android:summary="%s"
                    android:title="@string/sony_button_mode_left" />
                <ListPreference
                    android:entries="@array/redmi_buds_5_pro_long_button_settings_names"
                    android:entryValues="@array/redmi_buds_5_pro_long_button_settings_values"
                    android:defaultValue="7"
                    android:key="pref_redmi_buds_5_pro_control_long_tap_settings_left"
                    android:summary="%s"
                    android:title="@string/sony_ambient_sound_control_button_modes" />
                <ListPreference
                    android:entries="@array/redmi_buds_5_pro_long_button_mode_names"
                    android:entryValues="@array/redmi_buds_5_pro_long_button_mode_values"
                    android:icon="@drawable/ic_touch"
                    android:defaultValue="6"
                    android:key="pref_redmi_buds_5_pro_control_long_tap_mode_right"
                    android:summary="%s"
                    android:title="@string/sony_button_mode_right" />
                <ListPreference
                    android:entries="@array/redmi_buds_5_pro_long_button_settings_names"
                    android:entryValues="@array/redmi_buds_5_pro_long_button_settings_values"
                    android:defaultValue="7"
                    android:key="pref_redmi_buds_5_pro_control_long_tap_settings_right"
                    android:summary="%s"
                    android:title="@string/sony_ambient_sound_control_button_modes" />
            </PreferenceCategory>
        </PreferenceScreen>
 
        <SwitchPreferenceCompat
            android:defaultValue="false"
            android:key="pref_redmi_buds_5_pro_wearing_detection"
            android:layout="@layout/preference_checkbox"
            android:icon="@drawable/ic_pause"
            android:summary="@string/nothing_prefs_inear_summary"
            android:title="@string/nothing_prefs_inear_title"/>
 
        <SwitchPreferenceCompat
            android:defaultValue="false"
            android:icon="@drawable/ic_phone"
            android:key="pref_redmi_buds_5_pro_auto_reply_phonecall"
            android:summary="@string/pref_auto_reply_calls_summary"
            android:title="@string/pref_auto_reply_calls_title"/>
 
        <SwitchPreferenceCompat
            android:defaultValue="false"
            android:key="pref_redmi_buds_5_pro_double_connection"
            android:summary="@string/redmi_buds_5_pro_double_connection_description"
            android:title="@string/redmi_buds_5_pro_double_connection"/>
 
    </PreferenceCategory>
</androidx.preference.PreferenceScreen>