1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2010 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 <!-- Incoming server settings - tablet - see layout/ for phone UX variant --> 18 <!-- This is used directly by the account setup activity, but during settings it is 19 wrapped in an outer layout (account_settings_incoming_fragment) --> 20 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:stretchColumns="1" > 24 25 <TableRow 26 android:paddingTop="16dip" > 27 <TextView 28 android:layout_height="wrap_content" 29 android:layout_width="wrap_content" 30 android:layout_marginRight="16dip" 31 android:text="@string/account_setup_incoming_username_label" /> 32 <EditText 33 android:id="@+id/account_username" 34 android:layout_width="wrap_content" 35 android:layout_height="wrap_content" 36 android:contentDescription="@string/account_setup_incoming_username_label" 37 android:inputType="textEmailAddress" 38 android:imeOptions="actionDone" /> 39 </TableRow> 40 <TableRow 41 android:paddingTop="16dip" > 42 <TextView 43 android:layout_height="wrap_content" 44 android:layout_width="wrap_content" 45 android:layout_marginRight="16dip" 46 android:text="@string/account_setup_incoming_password_label" /> 47 <EditText 48 android:id="@+id/account_password" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:contentDescription="@string/account_setup_incoming_password_label" 52 android:inputType="textPassword" 53 android:imeOptions="actionDone" /> 54 </TableRow> 55 <TableRow 56 android:paddingTop="16dip" > 57 <!-- This text may be changed in code if the server is IMAP, etc. --> 58 <TextView 59 android:id="@+id/account_server_label" 60 android:layout_height="wrap_content" 61 android:layout_width="wrap_content" 62 android:layout_marginRight="16dip" 63 android:text="@string/account_setup_incoming_server_label" /> 64 <!-- Note: we use inputType=textUri as the closest approximation to a server name --> 65 <EditText 66 android:id="@+id/account_server" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:contentDescription="@string/account_setup_incoming_server_label" 70 android:inputType="textUri" 71 android:imeOptions="actionDone" /> 72 </TableRow> 73 <TableRow 74 android:paddingTop="16dip" > 75 <TextView 76 android:layout_height="wrap_content" 77 android:layout_width="wrap_content" 78 android:layout_marginRight="16dip" 79 android:text="@string/account_setup_incoming_security_label" /> 80 <Spinner 81 android:id="@+id/account_security_type" 82 android:layout_width="wrap_content" 83 android:layout_height="wrap_content" 84 android:contentDescription="@string/account_setup_incoming_security_label" /> 85 </TableRow> 86 <TableRow 87 android:paddingTop="16dip" > 88 <TextView 89 android:layout_height="wrap_content" 90 android:layout_width="wrap_content" 91 android:layout_marginRight="16dip" 92 android:text="@string/account_setup_incoming_port_label" /> 93 <EditText 94 android:id="@+id/account_port" 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:contentDescription="@string/account_setup_incoming_port_label" 98 android:inputType="number" 99 android:imeOptions="actionDone" /> 100 </TableRow> 101 <include 102 android:id="@+id/client_certificate_selector" 103 layout="@layout/client_certificate_selector" 104 android:visibility="gone" /> 105 <TableRow 106 android:paddingTop="16dip" > 107 <TextView 108 android:id="@+id/account_delete_policy_label" 109 android:layout_height="wrap_content" 110 android:layout_width="wrap_content" 111 android:layout_marginRight="16dip" 112 android:text="@string/account_setup_incoming_delete_policy_label" /> 113 <Spinner 114 android:id="@+id/account_delete_policy" 115 android:layout_width="wrap_content" 116 android:layout_height="wrap_content" 117 android:contentDescription="@string/account_setup_incoming_delete_policy_label" /> 118 </TableRow> 119 <TableRow 120 android:id="@+id/imap_path_prefix_section" 121 android:paddingTop="16dip" > 122 <TextView 123 android:layout_height="wrap_content" 124 android:layout_width="wrap_content" 125 android:layout_marginRight="16dip" 126 android:text="@string/account_setup_incoming_imap_path_prefix_label" /> 127 <EditText 128 android:id="@+id/imap_path_prefix" 129 android:layout_width="wrap_content" 130 android:layout_height="wrap_content" 131 android:contentDescription="@string/account_setup_incoming_imap_path_prefix_label" 132 android:hint="@string/account_setup_incoming_imap_path_prefix_hint" 133 android:inputType="text" 134 android:imeOptions="actionDone" /> 135 </TableRow> 136 <TableRow 137 android:id="@+id/device_id_section" 138 android:paddingTop="32dip" 139 android:visibility="gone" > 140 <TextView 141 android:layout_height="wrap_content" 142 android:layout_width="wrap_content" 143 android:layout_marginRight="16dip" 144 android:text="@string/account_setup_exchange_device_id_label" /> 145 <!-- TODO - when adding back in styles, this should be slightly different (was "medium") --> 146 <TextView 147 android:id="@+id/device_id" 148 android:layout_width="wrap_content" 149 android:layout_height="wrap_content" 150 android:textColor="#ffbebebe" /> 151 </TableRow> 152 </TableLayout> 153 154