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
<?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_hearing"
        android:key="prefs_ambient_mode"
        android:persistent="false"
        android:title="@string/prefs_ambient_mode">
 
        <PreferenceCategory android:title="@string/prefs_ambient_mode">
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:icon="@drawable/ic_hearing"
                android:key="pref_galaxy_buds_ambient_mode"
                android:layout="@layout/preference_checkbox"
                android:summary="Hear surrounding sounds"
                android:title="@string/prefs_ambient_sound" />
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:dependency="pref_galaxy_buds_ambient_mode"
                android:icon="@drawable/ic_voice"
                android:key="pref_galaxy_buds_ambient_voice_focus"
                android:layout="@layout/preference_checkbox"
                android:summary="@string/prefs_ambient_voice_summary"
                android:title="@string/prefs_ambient_voice_focus" />
 
            <SeekBarPreference
                style="@style/Widget.AppCompat.SeekBar.Discrete"
                android:icon="@drawable/ic_volume_up"
                android:key="pref_galaxy_buds_ambient_volume"
                android:max="5"
                android:title="@string/prefs_ambient_volume"
                app:min="1"
                app:showSeekBarValue="true" />
        </PreferenceCategory>
    </PreferenceScreen>
 
    <PreferenceScreen
        android:icon="@drawable/ic_graphic_eq"
        android:key="prefs_equalizer"
        android:persistent="false"
        android:title="@string/prefs_equalizer">
        <PreferenceCategory android:title="@string/prefs_equalizer">
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:icon="@drawable/ic_graphic_eq"
                android:key="pref_galaxy_buds_equalizer"
                android:layout="@layout/preference_checkbox"
                android:summary="@string/prefs_equalizer_summary"
                android:title="@string/prefs_equalizer" />
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:dependency="pref_galaxy_buds_equalizer"
                android:icon="@drawable/ic_music_note"
                android:key="pref_galaxy_buds_equalizer_dolby"
                android:layout="@layout/preference_checkbox"
                android:summary="@string/prefs_dolby_summary"
                android:title="@string/prefs_dolby_mode" />
            <ListPreference
                android:dependency="pref_galaxy_buds_equalizer"
                android:entries="@array/galaxy_eqalizer_modes"
                android:entryValues="@array/galaxy_eqalizer_values"
                android:icon="@drawable/ic_equalizer"
                android:key="pref_galaxy_buds_equalizer_mode"
                android:summary="%s"
                android:title="@string/prefs_equalizer_preset" />
        </PreferenceCategory>
    </PreferenceScreen>
 
    <PreferenceScreen
        android:icon="@drawable/ic_touch"
        android:key="prefs_galaxy_touch_options"
        android:persistent="false"
        android:title="@string/prefs_galaxy_touch_options">
        <PreferenceCategory android:title="@string/prefs_galaxy_touch_options">
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:disableDependentsState="true"
                android:icon="@drawable/ic_lock_open"
                android:key="pref_galaxy_buds_lock_touch"
                android:layout="@layout/preference_checkbox"
                android:summary="@string/prefs_touch_lock_summary"
                android:title="@string/prefs_touch_lock" />
            <ListPreference
                android:dependency="pref_galaxy_buds_lock_touch"
                android:entries="@array/galaxy_touch_options_left"
                android:entryValues="@array/galaxy_touch_options_values"
                android:icon="@drawable/ic_touch"
                android:key="pref_galaxy_buds_touch_left"
                android:summary="%s"
                android:title="@string/prefs_left" />
            <ListPreference
                android:dependency="pref_galaxy_buds_lock_touch"
                android:entries="@array/galaxy_touch_options_right"
                android:entryValues="@array/galaxy_touch_options_values"
                android:icon="@drawable/ic_touch"
                android:key="pref_galaxy_buds_touch_right"
                android:summary="%s"
                android:title="@string/prefs_right" />
        </PreferenceCategory>
    </PreferenceScreen>
    <PreferenceCategory android:title="@string/prefs_galaxy_buds_experimental">
        <SwitchPreferenceCompat
            android:defaultValue="false"
            android:icon="@drawable/ic_videogame"
            android:key="pref_galaxy_buds_game_mode"
            android:layout="@layout/preference_checkbox"
            android:summary="@string/prefs_game_mode_summary"
            android:title="@string/prefs_game_mode" />
    </PreferenceCategory>
 
</androidx.preference.PreferenceScreen>