1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2008 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<ScrollView 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_width="fill_parent" 20 android:layout_height="fill_parent" 21 android:fillViewport="true" 22 android:scrollbarStyle="outsideInset" > 23 24 <LinearLayout 25 android:layout_width="fill_parent" 26 android:layout_height="fill_parent" 27 android:orientation="vertical" > 28 29 <LinearLayout 30 android:layout_width="fill_parent" 31 android:layout_height="wrap_content" 32 android:layout_weight="1" 33 android:orientation="vertical" > 34 <TextView 35 android:text="@string/account_setup_incoming_username_label" 36 android:layout_height="wrap_content" 37 android:layout_width="fill_parent" 38 android:textAppearance="?android:attr/textAppearanceSmall" 39 android:textColor="?android:attr/textColorPrimary" /> 40 <EditText 41 android:id="@+id/account_username" 42 android:inputType="textEmailAddress" 43 android:imeOptions="actionDone" 44 android:layout_height="wrap_content" 45 android:layout_width="fill_parent" /> 46 <TextView 47 android:text="@string/account_setup_incoming_password_label" 48 android:layout_height="wrap_content" 49 android:layout_width="fill_parent" 50 android:textAppearance="?android:attr/textAppearanceSmall" 51 android:textColor="?android:attr/textColorPrimary" /> 52 <EditText 53 android:id="@+id/account_password" 54 android:inputType="textPassword" 55 android:imeOptions="actionDone" 56 android:layout_height="wrap_content" 57 android:layout_width="fill_parent" /> 58 <!-- This text may be changed in code if the server is IMAP, etc. --> 59 <TextView 60 android:id="@+id/account_server_label" 61 android:text="@string/account_setup_incoming_pop_server_label" 62 android:layout_height="wrap_content" 63 android:layout_width="fill_parent" 64 android:textAppearance="?android:attr/textAppearanceSmall" 65 android:textColor="?android:attr/textColorPrimary" /> 66 <!-- Note: we use inputType=textUri as the closest approximation to a server name --> 67 <EditText 68 android:id="@+id/account_server" 69 android:inputType="textUri" 70 android:imeOptions="actionDone" 71 android:layout_height="wrap_content" 72 android:layout_width="fill_parent" /> 73 <TextView 74 android:text="@string/account_setup_incoming_port_label" 75 android:layout_height="wrap_content" 76 android:layout_width="fill_parent" 77 android:textAppearance="?android:attr/textAppearanceSmall" 78 android:textColor="?android:attr/textColorPrimary" /> 79 <EditText 80 android:id="@+id/account_port" 81 android:inputType="number" 82 android:imeOptions="actionDone" 83 android:layout_height="wrap_content" 84 android:layout_width="fill_parent" /> 85 <TextView 86 android:text="@string/account_setup_incoming_security_label" 87 android:layout_height="wrap_content" 88 android:layout_width="fill_parent" 89 android:textAppearance="?android:attr/textAppearanceSmall" 90 android:textColor="?android:attr/textColorPrimary" /> 91 <Spinner 92 android:id="@+id/account_security_type" 93 android:layout_height="wrap_content" 94 android:layout_width="fill_parent" /> 95 <TextView 96 android:id="@+id/account_delete_policy_label" 97 android:text="@string/account_setup_incoming_delete_policy_label" 98 android:layout_height="wrap_content" 99 android:layout_width="fill_parent" 100 android:textAppearance="?android:attr/textAppearanceSmall" 101 android:textColor="?android:attr/textColorPrimary" /> 102 <Spinner 103 android:id="@+id/account_delete_policy" 104 android:layout_height="wrap_content" 105 android:layout_width="fill_parent" /> 106 <LinearLayout 107 android:id="@+id/imap_path_prefix_section" 108 android:layout_width="fill_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="fill_parent" 115 android:textAppearance="?android:attr/textAppearanceSmall" 116 android:textColor="?android:attr/textColorPrimary" /> 117 <EditText 118 android:id="@+id/imap_path_prefix" 119 android:hint="@string/account_setup_incoming_imap_path_prefix_hint" 120 inputType="text" 121 android:imeOptions="actionDone" 122 android:layout_height="wrap_content" 123 android:layout_width="fill_parent" /> 124 </LinearLayout> 125 </LinearLayout> 126 127 <RelativeLayout 128 android:layout_width="fill_parent" 129 android:layout_height="54dip" 130 android:background="@android:drawable/bottom_bar"> 131 <Button 132 android:id="@+id/next" 133 android:text="@string/next_action" 134 android:layout_height="wrap_content" 135 android:layout_width="wrap_content" 136 android:minWidth="@dimen/button_minWidth" 137 android:drawableRight="@drawable/button_indicator_next" 138 android:layout_alignParentRight="true" 139 android:layout_centerVertical="true" /> 140 </RelativeLayout> 141 </LinearLayout> 142</ScrollView> 143