1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
18
19    <EditTextPreference
20        android:key="account_description"
21        android:title="@string/account_settings_description_label"
22        android:summary=""
23        android:dialogTitle="@string/account_settings_description_label"
24        android:inputType="textCapWords" />
25
26    <EditTextPreference
27        android:key="account_name"
28        android:title="@string/account_settings_name_label"
29        android:summary=""
30        android:dialogTitle="@string/account_settings_name_label"
31        android:inputType="textPersonName|textCapWords" />
32
33    <EditTextPreference
34        android:key="account_signature"
35        android:title="@string/preferences_signature_title"
36        android:singleLine="false"
37        android:dialogTitle="@string/preferences_signature_dialog_title"  />
38
39    <PreferenceScreen
40        android:key="account_quick_responses"
41        android:title="@string/account_settings_edit_quick_responses_label"
42        android:summary="@string/account_settings_edit_quick_responses_summary" />
43
44    <PreferenceCategory
45        android:key="data_usage"
46        android:title="@string/account_settings_data_usage">
47
48        <ListPreference
49            android:key="account_check_frequency"
50            android:order="1"
51            android:title="@string/account_settings_mail_check_frequency_label"
52            android:entries="@array/account_settings_check_frequency_entries"
53            android:entryValues="@array/account_settings_check_frequency_values"
54            android:dialogTitle="@string/account_settings_mail_check_frequency_label" />
55
56        <!-- Reserve order#2,3 here for window size (if inserted) -->
57
58        <CheckBoxPreference
59            android:key="account_sync_email"
60            android:order="4"
61            android:defaultValue="true"
62            android:title="@string/account_settings_sync_email_enable"
63            android:summary="@string/account_settings_sync_email_summary" />
64        <CheckBoxPreference
65            android:key="account_sync_contacts"
66            android:order="5"
67            android:defaultValue="true"
68            android:title="@string/account_settings_sync_contacts_enable"
69            android:summary="@string/account_settings_sync_contacts_summary" />
70        <CheckBoxPreference
71            android:key="account_sync_calendar"
72            android:order="6"
73            android:defaultValue="true"
74            android:title="@string/account_settings_sync_calendar_enable"
75            android:summary="@string/account_settings_sync_calendar_summary" />
76
77        <!-- (will hide on POP3 accounts) -->
78        <CheckBoxPreference
79            android:key="account_background_attachments"
80            android:order="7"
81            android:title="@string/account_settings_background_attachments_label"
82            android:summary="@string/account_settings_background_attachments_summary" />
83
84    </PreferenceCategory>
85
86    <!-- This category is enabled after the folder preferences are loaded -->
87    <PreferenceCategory
88        android:enabled="false"
89        android:key="account_notifications"
90        android:title="@string/account_settings_notifications">
91
92        <CheckBoxPreference
93            android:key="notifications-enabled"
94            android:title="@string/account_settings_notify_label"
95            android:defaultValue="true"
96            android:summary="@string/account_settings_notify_summary" />
97
98        <Preference
99            android:key="notification-ringtone"
100            android:dependency="notifications-enabled"
101            android:title="@string/account_settings_ringtone" />
102
103        <CheckBoxPreference
104            android:key="notification-vibrate"
105            android:dependency="notifications-enabled"
106            android:defaultValue="false"
107            android:title="@string/label_notification_vibrate_title" />
108
109    </PreferenceCategory>
110
111    <PreferenceCategory
112        android:key="system_folders"
113        android:title="@string/system_folders_title">
114
115        <Preference
116            android:key="system_folders_trash"
117            android:layout="?android:attr/preferenceLayoutChild"
118            android:title="@string/system_folders_trash_title"
119            android:summary="@string/system_folders_trash_summary"
120            android:dialogTitle="@string/system_folders_trash_dlg"
121            />
122
123        <Preference
124            android:key="system_folders_sent"
125            android:layout="?android:attr/preferenceLayoutChild"
126            android:title="@string/system_folders_sent_title"
127            android:summary="@string/system_folders_sent_summary"
128            android:dialogTitle="@string/system_folders_sent_dlg"
129            />
130
131    </PreferenceCategory>
132
133    <PreferenceCategory
134        android:key="account_servers"
135        android:title="@string/account_settings_servers">
136
137        <PreferenceScreen
138            android:key="incoming"
139            android:title="@string/account_settings_incoming_label"
140            android:summary="@string/account_settings_incoming_summary" />
141
142        <PreferenceScreen
143            android:key="outgoing"
144            android:title="@string/account_settings_outgoing_label"
145            android:summary="@string/account_settings_outgoing_summary" />
146    </PreferenceCategory>
147
148    <PreferenceCategory
149        android:key="account_policies"
150        android:title="@string/account_settings_policies">
151
152        <com.android.email.activity.setup.PolicyListPreference
153            android:key="policies_enforced"
154            android:title="@string/account_settings_enforced_label"
155            android:summary="@string/account_settings_enforced_summary" />
156
157        <com.android.email.activity.setup.PolicyListPreference
158            android:key="policies_unsupported"
159            android:title="@string/account_settings_unsupported_label"
160            android:summary="@string/account_settings_unsupported_summary" />
161
162        <Preference
163            android:key="policies_retry_account"
164            android:title="@string/account_settings_retry_label"
165            android:summary="@string/account_settings_retry_summary" />
166    </PreferenceCategory>
167
168</PreferenceScreen>
169