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 - default - see layout-xlarge/ for XL variant --> 18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:layout_weight="1" 22 android:orientation="vertical" > 23 <TextView 24 android:text="@string/account_setup_incoming_username_label" 25 android:layout_height="wrap_content" 26 android:layout_width="match_parent" 27 android:textAppearance="?android:attr/textAppearanceSmall" 28 android:textColor="?android:attr/textColorPrimary" /> 29 <EditText 30 android:id="@+id/account_username" 31 android:layout_height="wrap_content" 32 android:layout_width="match_parent" 33 android:hint="@string/account_setup_incoming_username_label" 34 android:inputType="textEmailAddress" 35 android:imeOptions="actionNext" /> 36 <TextView 37 android:text="@string/account_setup_incoming_password_label" 38 android:layout_height="wrap_content" 39 android:layout_width="match_parent" 40 android:textAppearance="?android:attr/textAppearanceSmall" 41 android:textColor="?android:attr/textColorPrimary" /> 42 <EditText 43 android:id="@+id/account_password" 44 android:layout_height="wrap_content" 45 android:layout_width="match_parent" 46 android:hint="@string/account_setup_incoming_password_label" 47 android:inputType="textPassword" 48 android:imeOptions="actionNext" /> 49 <!-- This text may be changed in code if the server is IMAP, etc. --> 50 <TextView 51 android:id="@+id/account_server_label" 52 android:text="@string/account_setup_incoming_server_label" 53 android:layout_height="wrap_content" 54 android:layout_width="match_parent" 55 android:textAppearance="?android:attr/textAppearanceSmall" 56 android:textColor="?android:attr/textColorPrimary" /> 57 <!-- Note: we use inputType=textUri as the closest approximation to a server name --> 58 <!-- This contentDescription may be changed in code if the server is IMAP, etc. --> 59 <EditText 60 android:id="@+id/account_server" 61 android:layout_height="wrap_content" 62 android:layout_width="match_parent" 63 android:hint="@string/account_setup_incoming_server_label" 64 android:inputType="textUri" 65 android:imeOptions="actionNext" /> 66 <TextView 67 android:text="@string/account_setup_incoming_port_label" 68 android:layout_height="wrap_content" 69 android:layout_width="match_parent" 70 android:textAppearance="?android:attr/textAppearanceSmall" 71 android:textColor="?android:attr/textColorPrimary" /> 72 <EditText 73 android:id="@+id/account_port" 74 android:layout_height="wrap_content" 75 android:layout_width="match_parent" 76 android:hint="@string/account_setup_incoming_port_label" 77 android:inputType="number" 78 android:imeOptions="actionDone" /> 79 <TextView 80 android:text="@string/account_setup_incoming_security_label" 81 android:layout_height="wrap_content" 82 android:layout_width="match_parent" 83 android:textAppearance="?android:attr/textAppearanceSmall" 84 android:textColor="?android:attr/textColorPrimary" /> 85 <Spinner 86 android:id="@+id/account_security_type" 87 android:layout_height="wrap_content" 88 android:layout_width="match_parent" 89 android:contentDescription="@string/account_setup_incoming_security_label" /> 90 <include 91 android:id="@+id/client_certificate_selector" 92 layout="@layout/client_certificate_selector" 93 android:visibility="gone" /> 94 <TextView 95 android:id="@+id/account_delete_policy_label" 96 android:text="@string/account_setup_incoming_delete_policy_label" 97 android:layout_height="wrap_content" 98 android:layout_width="match_parent" 99 android:textAppearance="?android:attr/textAppearanceSmall" 100 android:textColor="?android:attr/textColorPrimary" /> 101 <Spinner 102 android:id="@+id/account_delete_policy" 103 android:layout_height="wrap_content" 104 android:layout_width="match_parent" 105 android:contentDescription="@string/account_setup_incoming_delete_policy_label" /> 106 <LinearLayout 107 android:id="@+id/imap_path_prefix_section" 108 android:layout_width="match_parent" 109 android:layout_height="wrap_content" 110 android:orientation="vertical"> 111 <TextView 112 android:text="@string/account_setup_incoming_imap_path_prefix_label" 113 android:layout_height="wrap_content" 114 android:layout_width="match_parent" 115 android:textAppearance="?android:attr/textAppearanceSmall" 116 android:textColor="?android:attr/textColorPrimary" /> 117 <EditText 118 android:id="@+id/imap_path_prefix" 119 android:layout_height="wrap_content" 120 android:layout_width="match_parent" 121 android:hint="@string/account_setup_incoming_imap_path_prefix_hint" 122 android:inputType="text" 123 android:imeOptions="actionDone" /> 124 </LinearLayout> 125 <LinearLayout 126 android:id="@+id/device_id_section" 127 android:layout_width="match_parent" 128 android:layout_height="wrap_content" 129 android:orientation="vertical" 130 android:visibility="gone"> 131 <TextView 132 android:text="@string/account_setup_exchange_device_id_label" 133 android:layout_height="wrap_content" 134 android:layout_width="match_parent" 135 android:textColor="?android:attr/textColorPrimary" /> 136 <TextView 137 android:id="@+id/device_id" 138 android:layout_height="wrap_content" 139 android:layout_width="match_parent" 140 android:textAppearance="?android:attr/textAppearanceMedium" 141 android:textColor="#ffbebebe" /> 142 </LinearLayout> 143 </LinearLayout> 144