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
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceScreen
        android:icon="@drawable/ic_volume_up"
        android:key="pref_screen_sound_and_vibration"
        android:persistent="false"
        android:title="@string/pref_header_sound_vibration">
 
        <SeekBarPreference
            android:defaultValue="50"
            android:icon="@drawable/ic_volume_up"
            android:key="volume"
            android:max="100"
            android:title="@string/menuitem_volume" />
 
        <SwitchPreferenceCompat
            android:defaultValue="false"
            android:icon="@drawable/ic_rotate_left"
            android:key="crown_vibration"
            android:layout="@layout/preference_checkbox"
            android:title="@string/pref_crown_vibration" />
 
        <SwitchPreferenceCompat
            android:defaultValue="false"
            android:icon="@drawable/ic_warning_gray"
            android:key="alert_tone"
            android:layout="@layout/preference_checkbox"
            android:title="@string/pref_alert_tone" />
 
        <SwitchPreferenceCompat
            android:defaultValue="false"
            android:icon="@drawable/ic_volume_off"
            android:key="cover_to_mute"
            android:layout="@layout/preference_checkbox"
            android:title="@string/pref_cover_to_mute" />
 
        <SwitchPreferenceCompat
            android:defaultValue="false"
            android:icon="@drawable/ic_vibration"
            android:key="vibrate_for_alert"
            android:layout="@layout/preference_checkbox"
            android:title="@string/pref_vibrate_for_alert" />
 
        <SwitchPreferenceCompat
            android:defaultValue="false"
            android:icon="@drawable/ic_voice"
            android:key="text_to_speech"
            android:layout="@layout/preference_checkbox"
            android:title="@string/pref_text_to_speech" />
    </PreferenceScreen>
</androidx.preference.PreferenceScreen>