wangzhibo
2026-08-16 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
<?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_sony_ambient_sound_control"
        android:title="@string/pref_header_sony_ambient_sound_control">
 
        <ListPreference
            android:defaultValue="noise_cancelling"
            android:entries="@array/sony_ambient_sound_control_names"
            android:entryValues="@array/sony_ambient_sound_control_values"
            android:icon="@drawable/ic_hearing"
            android:key="pref_sony_ambient_sound_control"
            android:summary="%s"
            android:title="@string/sony_ambient_sound" />
 
        <!-- [0, 19], which maps to [1, 20] on the device, as we can't configure the min on the current API level -->
        <SeekBarPreference
            android:defaultValue="0"
            android:icon="@drawable/ic_volume_up"
            android:key="pref_sony_ambient_sound_level"
            android:max="19"
            android:title="@string/sony_ambient_sound_level" />
 
        <SwitchPreferenceCompat
            android:defaultValue="true"
            android:icon="@drawable/ic_voice"
            android:key="pref_sony_focus_voice"
            android:layout="@layout/preference_checkbox"
            android:title="@string/sony_ambient_sound_focus_voice" />
 
    </PreferenceCategory>
</androidx.preference.PreferenceScreen>