Home | History | Annotate | Download | only in xml
      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/account_settings_signature_label"
     36         android:summary="@string/account_settings_signature_hint"
     37         android:dialogTitle="@string/account_settings_signature_label"
     38         android:inputType="textCapSentences|textMultiLine" />
     39 
     40     <PreferenceScreen
     41         android:key="account_quick_responses"
     42         android:title="@string/account_settings_edit_quick_responses_label"
     43         android:summary="@string/account_settings_edit_quick_responses_summary" />
     44 
     45     <CheckBoxPreference
     46         android:key="account_default"
     47         android:title="@string/account_settings_default_label"
     48         android:summary="@string/account_settings_default_summary" />
     49 
     50     <PreferenceCategory
     51         android:key="data_usage"
     52         android:title="@string/account_settings_data_usage">
     53 
     54         <ListPreference
     55             android:key="account_check_frequency"
     56             android:order="1"
     57             android:title="@string/account_settings_mail_check_frequency_label"
     58             android:entries="@array/account_settings_check_frequency_entries"
     59             android:entryValues="@array/account_settings_check_frequency_values"
     60             android:dialogTitle="@string/account_settings_mail_check_frequency_label" />
     61 
     62         <!-- Reserve order#2 here for window size (if inserted) -->
     63 
     64         <CheckBoxPreference
     65             android:key="account_sync_email"
     66             android:order="3"
     67             android:defaultValue="true"
     68             android:title="@string/account_settings_sync_email_enable"
     69             android:summary="@string/account_settings_sync_email_summary" />
     70         <CheckBoxPreference
     71             android:key="account_sync_contacts"
     72             android:order="4"
     73             android:defaultValue="true"
     74             android:title="@string/account_settings_sync_contacts_enable"
     75             android:summary="@string/account_settings_sync_contacts_summary" />
     76         <CheckBoxPreference
     77             android:key="account_sync_calendar"
     78             android:order="5"
     79             android:defaultValue="true"
     80             android:title="@string/account_settings_sync_calendar_enable"
     81             android:summary="@string/account_settings_sync_calendar_summary" />
     82 
     83         <!-- (will hide on POP3 accounts) -->
     84         <CheckBoxPreference
     85             android:key="account_background_attachments"
     86             android:order="6"
     87             android:title="@string/account_settings_background_attachments_label"
     88             android:summary="@string/account_settings_background_attachments_summary" />
     89 
     90     </PreferenceCategory>
     91 
     92     <PreferenceCategory
     93         android:key="account_notifications"
     94         android:title="@string/account_settings_notifications">
     95 
     96         <CheckBoxPreference
     97             android:key="account_notify"
     98             android:title="@string/account_settings_notify_label"
     99             android:defaultValue="true"
    100             android:summary="@string/account_settings_notify_summary" />
    101 
    102         <RingtonePreference
    103             android:key="account_ringtone"
    104             android:layout="?android:attr/preferenceLayoutChild"
    105             android:dependency="account_notify"
    106             android:title="@string/account_settings_ringtone"
    107             android:ringtoneType="notification"
    108             android:defaultValue="content://settings/system/notification_sound" />
    109 
    110         <ListPreference
    111             android:key="account_settings_vibrate_when"
    112             android:layout="?android:attr/preferenceLayoutChild"
    113             android:dependency="account_notify"
    114             android:defaultValue="never"
    115             android:title="@string/account_settings_vibrate_when_label"
    116             android:summary="@string/account_settings_vibrate_when_summary"
    117             android:entries="@array/account_settings_vibrate_when_entries"
    118             android:entryValues="@array/account_settings_vibrate_when_values"
    119             android:dialogTitle="@string/account_settings_vibrate_when_dlg_title" />
    120 
    121     </PreferenceCategory>
    122 
    123     <PreferenceCategory
    124         android:key="account_servers"
    125         android:title="@string/account_settings_servers">
    126 
    127         <PreferenceScreen
    128             android:key="incoming"
    129             android:title="@string/account_settings_incoming_label"
    130             android:summary="@string/account_settings_incoming_summary" />
    131 
    132         <PreferenceScreen
    133             android:key="outgoing"
    134             android:title="@string/account_settings_outgoing_label"
    135             android:summary="@string/account_settings_outgoing_summary" />
    136     </PreferenceCategory>
    137 
    138     <PreferenceCategory
    139         android:title="@string/account_settings_category_delete_account">
    140 
    141         <PreferenceScreen
    142             android:key="delete_account"
    143             android:title="@string/account_settings_delete_account_label" />
    144     </PreferenceCategory>
    145 
    146 </PreferenceScreen>
    147