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
<?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">
    <SwitchPreferenceCompat
        android:defaultValue="false"
        android:icon="@drawable/ic_phone"
        android:key="pref_auto_reply_phonecall"
        android:summary="@string/pref_auto_reply_calls_summary"
        android:title="@string/pref_auto_reply_calls_title"/>
    <EditTextPreference
        android:icon="@drawable/ic_timer"
        android:digits="123"
        android:dependency="pref_auto_reply_phonecall"
        android:inputType="numberDecimal"
        android:key="pref_auto_reply_phonecall_delay"
        android:summary="@string/pref_auto_reply_calls_delay_summary"
        android:title="@string/pref_auto_reply_calls_delay_title"
        app:defaultValue="15" />
    <SwitchPreferenceCompat
        android:defaultValue="false"
        android:icon="@drawable/ic_voice"
        android:key="pref_speak_notifications_aloud"
        android:summary="@string/pref_speak_notifications_aloud_summary"
        android:title="@string/pref_speak_notifications_aloud_title" />
    <SwitchPreferenceCompat
        android:defaultValue="false"
        android:icon="@drawable/ic_voice"
        android:key="pref_speak_notifications_focus_exclusive"
        android:summaryOff="@string/pref_speak_notifications_focus_exclusive_summary_off"
        android:summaryOn="@string/pref_speak_notifications_focus_exclusive_summary_on"
        android:title="@string/pref_speak_notifications_focus_exclusive_title" />
</androidx.preference.PreferenceScreen>