settings_account.xml 4.79 KB
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
Ricki Hirner's avatar
Ricki Hirner committed
2
<!--
Ricki Hirner's avatar
Ricki Hirner committed
3
  ~ Copyright © Ricki Hirner (bitfire web engineering).
Ricki Hirner's avatar
Ricki Hirner committed
4 5 6 7 8 9
  ~ All rights reserved. This program and the accompanying materials
  ~ are made available under the terms of the GNU Public License v3.0
  ~ which accompanies this distribution, and is available at
  ~ http://www.gnu.org/licenses/gpl.html
  -->

10
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
Ricki Hirner's avatar
Ricki Hirner committed
11

12 13 14
    <PreferenceCategory
        android:key="sync"
        android:title="@string/settings_sync">
Ricki Hirner's avatar
Ricki Hirner committed
15 16 17 18 19

        <ListPreference
            android:key="sync_interval_contacts"
            android:persistent="false"
            android:title="@string/settings_sync_interval_contacts"
20
            android:icon="@drawable/ic_contacts_dark"
Ricki Hirner's avatar
Ricki Hirner committed
21
            android:entries="@array/settings_sync_interval_names"
22
            android:entryValues="@array/settings_sync_interval_seconds"/>
Ricki Hirner's avatar
Ricki Hirner committed
23 24 25 26 27

        <ListPreference
            android:key="sync_interval_calendars"
            android:persistent="false"
            android:title="@string/settings_sync_interval_calendars"
28
            android:icon="@drawable/ic_today_dark"
Ricki Hirner's avatar
Ricki Hirner committed
29
            android:entries="@array/settings_sync_interval_names"
30
            android:entryValues="@array/settings_sync_interval_seconds"/>
Ricki Hirner's avatar
Ricki Hirner committed
31

Ricki Hirner's avatar
Ricki Hirner committed
32 33 34 35
        <ListPreference
            android:key="sync_interval_tasks"
            android:persistent="false"
            android:title="@string/settings_sync_interval_tasks"
36
            android:icon="@drawable/ic_playlist_add_check_dark"
Ricki Hirner's avatar
Ricki Hirner committed
37
            android:entries="@array/settings_sync_interval_names"
38
            android:entryValues="@array/settings_sync_interval_seconds"/>
Ricki Hirner's avatar
Ricki Hirner committed
39

40 41 42 43
        <SwitchPreferenceCompat
            android:key="sync_wifi_only"
            android:persistent="false"
            android:title="@string/settings_sync_wifi_only"
44
            android:icon="@drawable/ic_network_wifi_dark"
45
            android:summaryOn="@string/settings_sync_wifi_only_on"
46
            android:summaryOff="@string/settings_sync_wifi_only_off" />
47 48

        <EditTextPreference
49
            android:key="sync_wifi_only_ssids"
50 51
            android:dependency="sync_wifi_only"
            android:persistent="false"
52 53
            android:title="@string/settings_sync_wifi_only_ssids"
            android:dialogMessage="@string/settings_sync_wifi_only_ssids_message"/>
54 55 56

    </PreferenceCategory>

57
    <PreferenceCategory android:title="@string/settings_authentication">
58

59 60 61
        <EditTextPreference
            android:key="username"
            android:title="@string/settings_username"
62
            android:persistent="false"
63 64 65 66 67 68 69 70 71 72 73 74 75 76
            android:dialogTitle="@string/settings_enter_username"/>

        <EditTextPreference
            android:key="password"
            android:title="@string/settings_password"
            android:persistent="false"
            android:inputType="textPassword"
            android:summary="@string/settings_password_summary"
            android:dialogTitle="@string/settings_enter_password"/>

        <Preference
            android:key="certificate_alias"
            android:title="@string/settings_certificate_alias"
            android:persistent="false"/>
77 78 79

    </PreferenceCategory>

80 81 82
    <PreferenceCategory
        android:key="caldav"
        android:title="@string/settings_caldav">
83

84
        <EditTextPreference
85
            android:key="time_range_past_days"
86
            android:persistent="false"
Ricki Hirner's avatar
Ricki Hirner committed
87
            android:title="@string/settings_sync_time_range_past"
88
            android:icon="@drawable/ic_date_range_dark"
89 90 91
            android:dialogMessage="@string/settings_sync_time_range_past_message"
            android:inputType="number"/>

92 93 94 95 96 97 98
        <SwitchPreferenceCompat
            android:key="manage_calendar_colors"
            android:persistent="false"
            android:title="@string/settings_manage_calendar_colors"
            android:summaryOn="@string/settings_manage_calendar_colors_on"
            android:summaryOff="@string/settings_manage_calendar_colors_off"/>

99 100 101 102 103 104 105
        <SwitchPreferenceCompat
            android:key="event_colors"
            android:persistent="false"
            android:title="@string/settings_event_colors"
            android:summaryOn="@string/settings_event_colors_on"
            android:summaryOff="@string/settings_event_colors_off"/>

106
    </PreferenceCategory>
107

108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
    <PreferenceCategory
        android:key="carddav"
        android:title="@string/settings_carddav">

        <ListPreference
            android:key="contact_group_method"
            android:persistent="false"
            android:title="@string/settings_contact_group_method"
            android:icon="@drawable/ic_group_dark"
            android:entries="@array/settings_contact_group_method_entries"
            android:entryValues="@array/settings_contact_group_method_values"/>

    </PreferenceCategory>

</androidx.preference.PreferenceScreen>