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     <PreferenceCategory
     20         android:key="account_settings">
     21 
     22         <EditTextPreference
     23             android:order="1"
     24             android:key="account_description"
     25             android:title="@string/account_settings_description_label"
     26             android:summary=""
     27             android:dialogTitle="@string/account_settings_description_label" />
     28 
     29         <EditTextPreference
     30             android:order="2"
     31             android:key="account_name"
     32             android:title="@string/account_settings_name_label"
     33             android:summary=""
     34             android:dialogTitle="@string/account_settings_name_label" />
     35 
     36         <EditTextPreference
     37             android:order="3"
     38             android:key="account_signature"
     39             android:title="@string/account_settings_signature_label"
     40             android:summary=""
     41             android:dialogTitle="@string/account_settings_signature_label" />
     42 
     43         <ListPreference
     44             android:order="4"
     45             android:key="account_check_frequency"
     46             android:title="@string/account_settings_mail_check_frequency_label"
     47             android:entries="@array/account_settings_check_frequency_entries"
     48             android:entryValues="@array/account_settings_check_frequency_values"
     49             android:dialogTitle="@string/account_settings_mail_check_frequency_label" />
     50 
     51 		<!-- Reserve order#5 here for window size (if inserted) -->
     52 		
     53         <CheckBoxPreference
     54             android:order="6"
     55             android:key="account_default"
     56             android:title="@string/account_settings_default_label"
     57             android:summary="@string/account_settings_default_summary" />
     58 
     59     </PreferenceCategory>
     60 
     61     <PreferenceCategory android:title="@string/account_settings_notifications">
     62 
     63         <CheckBoxPreference
     64             android:key="account_notify"
     65             android:title="@string/account_settings_notify_label"
     66             android:defaultValue="true"
     67             android:summary="@string/account_settings_notify_summary" />
     68 
     69         <RingtonePreference
     70             android:layout="?android:attr/preferenceLayoutChild"
     71             android:dependency="account_notify"
     72             android:key="account_ringtone"
     73             android:title="@string/account_settings_ringtone"
     74             android:ringtoneType="notification"
     75             android:defaultValue="content://settings/system/notification_sound" />
     76 
     77         <ListPreference
     78             android:layout="?android:attr/preferenceLayoutChild"
     79             android:dependency="account_notify"
     80             android:key="account_settings_vibrate_when"
     81             android:defaultValue="never"
     82             android:title="@string/account_settings_vibrate_when_label"
     83             android:summary="@string/account_settings_vibrate_when_summary"
     84             android:entries="@array/account_settings_vibrate_when_entries"
     85             android:entryValues="@array/account_settings_vibrate_when_values"
     86             android:dialogTitle="@string/account_settings_vibrate_when_dlg_title" />
     87 
     88     </PreferenceCategory>
     89 
     90     <PreferenceCategory 
     91         android:key="account_servers"
     92         android:title="@string/account_settings_servers">
     93     
     94         <PreferenceScreen
     95             android:key="incoming"
     96             android:title="@string/account_settings_incoming_label" />
     97 
     98         <PreferenceScreen
     99             android:key="outgoing"
    100             android:title="@string/account_settings_outgoing_label" />
    101 
    102         <CheckBoxPreference
    103             android:layout="?android:attr/preferenceLayoutChild"
    104             android:key="account_sync_contacts"
    105             android:defaultValue="true"
    106             android:title="@string/account_settings_sync_contacts_enable"
    107             android:summary="@string/account_settings_sync_contacts_summary" />
    108         <CheckBoxPreference
    109             android:layout="?android:attr/preferenceLayoutChild"
    110             android:key="account_sync_calendar"
    111             android:defaultValue="true"
    112             android:title="@string/account_settings_sync_calendar_enable"
    113             android:summary="@string/account_settings_sync_calendar_summary" />
    114     </PreferenceCategory>
    115 
    116 </PreferenceScreen>
    117