1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 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 <!-- Common data-entry area of account options setup screen - check freq, options, etc. --> 18 <!-- tablet version --> 19 <RelativeLayout 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:paddingLeft="@dimen/setup_item_inset_left" 24 android:paddingRight="@dimen/setup_item_inset_right" 25 > 26 <!-- Spinners in a table to line everything up nicely --> 27 <TableLayout 28 android:id="@+id/spinners_table" 29 android:layout_alignParentTop="true" 30 android:layout_width="match_parent" 31 android:layout_height="wrap_content" 32 android:stretchColumns="1" > 33 <TableRow 34 android:paddingTop="16dip" > 35 <TextView 36 android:layout_height="wrap_content" 37 android:layout_width="wrap_content" 38 android:layout_marginRight="16dip" 39 android:text="@string/account_setup_options_mail_check_frequency_label" 40 android:textColor="?android:attr/textColorPrimary" /> 41 <Spinner 42 android:id="@+id/account_check_frequency" 43 android:layout_height="wrap_content" 44 android:layout_width="match_parent" /> 45 </TableRow> 46 <!-- 2nd row is shown only for EAS accounts --> 47 <TableRow 48 android:id="@+id/account_sync_window_row" 49 android:paddingTop="16dip" 50 android:visibility="gone" > 51 <TextView 52 android:layout_height="wrap_content" 53 android:layout_width="wrap_content" 54 android:layout_marginRight="16dip" 55 android:text="@string/account_setup_options_mail_window_label" 56 android:textColor="?android:attr/textColorPrimary" /> 57 <Spinner 58 android:id="@+id/account_sync_window" 59 android:layout_height="wrap_content" 60 android:layout_width="match_parent" /> 61 </TableRow> 62 </TableLayout> 63 <CheckBox 64 android:id="@+id/account_notify" 65 android:layout_below="@+id/spinners_table" 66 android:layout_marginTop="16dip" 67 android:layout_marginBottom="16dip" 68 android:layout_marginLeft="32dip" 69 android:layout_height="wrap_content" 70 android:layout_width="match_parent" 71 android:text="@string/account_setup_options_notify_label" /> 72 <View 73 android:id="@+id/account_notify_divider" 74 android:layout_below="@+id/account_notify" 75 android:layout_width="match_parent" 76 android:layout_height="1px" 77 android:background="@color/account_setup_divider_color" /> 78 <!-- Contacts sync - hide unless EAS --> 79 <CheckBox 80 android:id="@+id/account_sync_contacts" 81 android:layout_below="@+id/account_notify_divider" 82 android:layout_marginTop="16dip" 83 android:layout_marginBottom="16dip" 84 android:layout_marginLeft="32dip" 85 android:layout_height="wrap_content" 86 android:layout_width="match_parent" 87 android:text="@string/account_setup_options_sync_contacts_label" 88 android:visibility="gone" /> 89 <View 90 android:id="@+id/account_sync_contacts_divider" 91 android:layout_below="@+id/account_sync_contacts" 92 android:layout_width="match_parent" 93 android:layout_height="1px" 94 android:background="@color/account_setup_divider_color" 95 android:visibility="gone" /> 96 <!-- Calendar sync - hide unless EAS --> 97 <CheckBox 98 android:id="@+id/account_sync_calendar" 99 android:layout_below="@+id/account_sync_contacts_divider" 100 android:layout_marginTop="16dip" 101 android:layout_marginBottom="16dip" 102 android:layout_marginLeft="32dip" 103 android:layout_height="wrap_content" 104 android:layout_width="match_parent" 105 android:text="@string/account_setup_options_sync_calendar_label" 106 android:visibility="gone" /> 107 <View 108 android:id="@+id/account_sync_calendar_divider" 109 android:layout_below="@+id/account_sync_calendar" 110 android:layout_width="match_parent" 111 android:layout_height="1px" 112 android:background="@color/account_setup_divider_color" 113 android:visibility="gone" /> 114 <!-- Email sync - always show --> 115 <CheckBox 116 android:id="@+id/account_sync_email" 117 android:layout_below="@+id/account_sync_calendar_divider" 118 android:layout_marginTop="16dip" 119 android:layout_marginBottom="16dip" 120 android:layout_marginLeft="32dip" 121 android:layout_height="wrap_content" 122 android:layout_width="match_parent" 123 android:text="@string/account_setup_options_sync_email_label" /> 124 <View 125 android:id="@+id/account_sync_email_divider" 126 android:layout_below="@+id/account_sync_email" 127 android:layout_width="match_parent" 128 android:layout_height="1px" 129 android:background="@color/account_setup_divider_color" /> 130 <!-- Auto-download attachments - always show, unless POP3 --> 131 <CheckBox 132 android:id="@+id/account_background_attachments" 133 android:layout_below="@+id/account_sync_email_divider" 134 android:layout_marginTop="16dip" 135 android:layout_marginBottom="16dip" 136 android:layout_marginLeft="32dip" 137 android:layout_height="wrap_content" 138 android:layout_width="match_parent" 139 android:text="@string/account_setup_options_background_attachments_label" /> 140 <View 141 android:id="@+id/account_background_attachments_divider" 142 android:layout_below="@+id/account_sync_email" 143 android:layout_width="match_parent" 144 android:layout_height="1px" 145 android:background="@color/account_setup_divider_color" /> 146 </RelativeLayout> 147