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
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
 
    <PreferenceScreen
        android:icon="@drawable/ic_phone"
        android:key="pref_phone_calls_header"
        android:persistent="false"
        android:summary="@string/pref_summary_receive_calls_watch"
        android:title="@string/pref_title_notifications_call">
 
        <PreferenceCategory
            android:key="pref_bluetooth_calls_pairing_header"
            android:title="@string/bluetooth_calls_pairing">
 
            <Preference
                android:icon="@drawable/ic_info"
                android:key="phone_calls_pair_info"
                android:summary="@string/pref_pair_bluetooth_calls_help_summary" />
 
            <Preference
                android:key="phone_calls_pair_info_1"
                android:summary="@string/pref_pair_bluetooth_calls_help_1" />
 
            <Preference
                android:key="phone_calls_pair_info_2"
                android:summary="@string/pref_pair_bluetooth_calls_help_2" />
 
            <Preference
                android:key="phone_calls_pair_info_3"
                android:summary="@string/pref_pair_bluetooth_calls_help_3" />
 
            <Preference
                android:icon="@drawable/ic_warning_gray"
                android:key="phone_calls_pair_info_warning"
                android:summary="@string/pref_pair_bluetooth_calls_help_warning" />
 
            <Preference
                android:icon="@drawable/ic_link"
                android:key="bluetooth_calls_pair"
                android:summary="@string/pref_pair_bluetooth_calls_summary"
                android:title="@string/pref_pair_bluetooth_calls_title" />
        </PreferenceCategory>
 
        <PreferenceCategory
            android:key="pref_bluetooth_calls_settings_header"
            android:title="@string/bluetooth_calls_settings">
 
            <SwitchPreferenceCompat
                android:defaultValue="false"
                android:icon="@drawable/ic_voice"
                android:key="bluetooth_calls_enabled"
                android:layout="@layout/preference_checkbox"
                android:summary="@string/pref_summary_receive_calls_watch"
                android:title="@string/bluetooth_calls" />
 
            <SwitchPreferenceCompat
                android:defaultValue="true"
                android:icon="@drawable/ic_person"
                android:key="display_caller"
                android:layout="@layout/preference_checkbox"
                android:summary="@string/pref_display_caller_summary"
                android:title="@string/pref_display_caller_title" />
 
            <EditTextPreference
                android:defaultValue="0"
                android:digits="0123456789"
                android:icon="@drawable/ic_access_time"
                android:inputType="number"
                android:key="notification_delay_calls"
                android:maxLength="2"
                android:summary="@string/pref_summary_notification_delay_calls"
                android:title="@string/pref_title_notification_delay_calls" />
        </PreferenceCategory>
 
    </PreferenceScreen>
 
</androidx.preference.PreferenceScreen>