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 style="@style/account_setup_label_text" /> 33 <EditText 34 android:id="@+id/account_username" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:contentDescription="@string/account_setup_incoming_username_label" 38 android:inputType="textEmailAddress" /> 39 </TableRow> 40 <TableRow 41 android:paddingTop="16dip" > 42 <!-- This text may be changed in code if the we are using OAuth, etc.--> 43 <TextView 44 android:id="@+id/authentication_label" 45 android:layout_height="wrap_content" 46 android:layout_width="wrap_content" 47 android:layout_marginRight="16dip" 48 android:contentDescription="@string/authentication_label" 49 android:text="@string/authentication_label" 50 android:layout_gravity="center_vertical" 51 style="@style/account_setup_label_text"/> 52 <com.android.email.activity.setup.AuthenticationView 53 android:id="@+id/authentication_view" 54 android:layout_width="match_parent" 55 android:layout_height="wrap_content" 56 style="@style/account_setup_label_text" /> 57 </TableRow> 58 59 <include 60 android:id="@+id/client_certificate_selector" 61 layout="@layout/client_certificate_selector" 62 android:visibility="gone" /> 63 64 <TableRow 65 android:id="@+id/device_id_section" 66 android:paddingTop="16dip" 67 android:visibility="gone" > 68 <TextView 69 android:layout_height="wrap_content" 70 android:layout_width="wrap_content" 71 android:layout_marginRight="16dip" 72 android:text="@string/account_setup_exchange_device_id_label" 73 style="@style/account_setup_label_text" /> 74 <!-- TODO - when adding back in styles, this should be slightly different (was "medium") --> 75 <TextView 76 android:id="@+id/device_id" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:textAppearance="?android:attr/textAppearanceSmall" 80 android:textColor="#ffbebebe"/> 81 </TableRow> 82 83 <TableRow 84 android:paddingTop="16dip" > 85 <!-- This text may be changed in code if the server is IMAP, etc. --> 86 <TextView 87 android:id="@+id/account_server_label" 88 android:layout_height="wrap_content" 89 android:layout_width="wrap_content" 90 android:layout_marginRight="16dip" 91 android:text="@string/account_setup_incoming_server_label" 92 style="@style/account_setup_label_text" /> 93 <!-- Note: we use inputType=textUri as the closest approximation to a server name --> 94 <EditText 95 android:id="@+id/account_server" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:contentDescription="@string/account_setup_incoming_server_label" 99 android:inputType="textUri" /> 100 </TableRow> 101 <TableRow 102 android:paddingTop="16dip" > 103 <TextView 104 android:layout_height="wrap_content" 105 android:layout_width="wrap_content" 106 android:layout_marginRight="16dip" 107 android:text="@string/account_setup_incoming_security_label" 108 style="@style/account_setup_label_text" /> 109 <Spinner 110 android:id="@+id/account_security_type" 111 android:layout_width="wrap_content" 112 android:layout_height="wrap_content" 113 android:contentDescription="@string/account_setup_incoming_security_label" /> 114 </TableRow> 115 <TableRow 116 android:paddingTop="16dip" > 117 <TextView 118 android:layout_height="wrap_content" 119 android:layout_width="wrap_content" 120 android:layout_marginRight="16dip" 121 android:text="@string/account_setup_incoming_port_label" 122 style="@style/account_setup_label_text" /> 123 <EditText 124 android:id="@+id/account_port" 125 android:layout_width="wrap_content" 126 android:layout_height="wrap_content" 127 android:contentDescription="@string/account_setup_incoming_port_label" 128 android:inputType="number" /> 129 </TableRow> 130 131 <TableRow 132 android:paddingTop="16dip" > 133 <TextView 134 android:id="@+id/account_delete_policy_label" 135 android:layout_height="wrap_content" 136 android:layout_width="wrap_content" 137 android:layout_marginRight="16dip" 138 android:text="@string/account_setup_incoming_delete_policy_label" 139 style="@style/account_setup_label_text" /> 140 <Spinner 141 android:id="@+id/account_delete_policy" 142 android:layout_width="wrap_content" 143 android:layout_height="wrap_content" 144 android:contentDescription="@string/account_setup_incoming_delete_policy_label" /> 145 </TableRow> 146 <TableRow 147 android:id="@+id/imap_path_prefix_section" 148 android:paddingTop="16dip" > 149 <TextView 150 android:layout_height="wrap_content" 151 android:layout_width="wrap_content" 152 android:layout_marginRight="16dip" 153 android:text="@string/account_setup_incoming_imap_path_prefix_label" 154 style="@style/account_setup_label_text" /> 155 <EditText 156 android:id="@+id/imap_path_prefix" 157 android:layout_width="wrap_content" 158 android:layout_height="wrap_content" 159 android:contentDescription="@string/account_setup_incoming_imap_path_prefix_label" 160 android:hint="@string/account_setup_incoming_imap_path_prefix_hint" 161 android:inputType="text" /> 162 </TableRow> 163 </TableLayout> 164 165