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
<?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_calendar_sync"
        android:key="sync_calendar"
        android:layout="@layout/preference_checkbox"
        android:summary="@string/pref_summary_sync_calendar"
        android:title="@string/pref_title_sync_caldendar" />
    <EditTextPreference
        android:defaultValue="7"
        android:dependency="sync_calendar"
        android:icon="@drawable/ic_calendar_to"
        android:inputType="number"
        android:key="calendar_lookahead_days"
        android:maxLength="3"
        android:title="@string/pref_title_calendar_lookahead"
        app:useSimpleSummaryProvider="true" />
    <SwitchPreferenceCompat
        android:defaultValue="false"
        android:dependency="sync_calendar"
        android:icon="@drawable/ic_person"
        android:key="sync_birthdays"
        android:layout="@layout/preference_checkbox"
        android:summary="@string/pref_summary_sync_birthdays"
        android:title="@string/pref_title_sync_birthdays" />
    <Preference
        android:dependency="sync_calendar"
        android:icon="@drawable/ic_block"
        android:key="blacklist_calendars"
        android:summary="@string/pref_blacklist_calendars_summary"
        android:title="@string/pref_blacklist_calendars" />
</androidx.preference.PreferenceScreen>