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:contentDescription="@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:contentDescription="@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_pop_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:contentDescription="@string/account_setup_incoming_pop_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:contentDescription="@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 <TextView 91 android:id="@+id/account_delete_policy_label" 92 android:text="@string/account_setup_incoming_delete_policy_label" 93 android:layout_height="wrap_content" 94 android:layout_width="match_parent" 95 android:textAppearance="?android:attr/textAppearanceSmall" 96 android:textColor="?android:attr/textColorPrimary" /> 97 <Spinner 98 android:id="@+id/account_delete_policy" 99 android:layout_height="wrap_content" 100 android:layout_width="match_parent" 101 android:contentDescription="@string/account_setup_incoming_delete_policy_label" /> 102 <LinearLayout 103 android:id="@+id/imap_path_prefix_section" 104 android:layout_width="match_parent" 105 android:layout_height="wrap_content" 106 android:orientation="vertical"> 107 <TextView 108 android:text="@string/account_setup_incoming_imap_path_prefix_label" 109 android:layout_height="wrap_content" 110 android:layout_width="match_parent" 111 android:textAppearance="?android:attr/textAppearanceSmall" 112 android:textColor="?android:attr/textColorPrimary" /> 113 <EditText 114 android:id="@+id/imap_path_prefix" 115 android:layout_height="wrap_content" 116 android:layout_width="match_parent" 117 android:contentDescription="@string/account_setup_incoming_imap_path_prefix_label" 118 android:hint="@string/account_setup_incoming_imap_path_prefix_hint" 119 android:inputType="text" 120 android:imeOptions="actionDone" /> 121 </LinearLayout> 122 </LinearLayout> 123