1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2011 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="match_parent" 18 android:layout_height="match_parent" 19 android:orientation="vertical"> 20 21 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 22 android:layout_width="match_parent" 23 android:layout_height="0px" 24 android:layout_weight="1"> 25 26 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:orientation="vertical"> 30 31 <View 32 android:layout_height="10dip" 33 android:layout_width="match_parent" /> 34 35 <TextView 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:textAppearance="?android:attr/textAppearanceMedium" 39 android:text="@string/autofill_profile_editor_heading" /> 40 41 <View 42 android:layout_height="12dip" 43 android:layout_width="match_parent" /> 44 45 <TextView 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:gravity="center_vertical" 49 android:layout_margin="2dip" 50 android:textAppearance="?android:attr/textAppearanceMedium" 51 android:text="@string/autofill_profile_editor_name" /> 52 <EditText android:id="@+id/autofill_profile_editor_name_edit" 53 android:layout_width="match_parent" 54 android:layout_height="wrap_content" 55 android:gravity="center_vertical" 56 android:layout_margin="2dip" 57 android:textAppearance="?android:attr/textAppearanceMedium" 58 android:inputType="textPersonName|textCapWords" 59 android:singleLine="true" 60 android:imeOptions="actionNext" /> 61 <TextView 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:gravity="center_vertical" 65 android:layout_margin="2dip" 66 android:textAppearance="?android:attr/textAppearanceMedium" 67 android:text="@string/autofill_profile_editor_company_name" /> 68 <EditText android:id="@+id/autofill_profile_editor_company_name_edit" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:gravity="center_vertical" 72 android:layout_margin="2dip" 73 android:textAppearance="?android:attr/textAppearanceMedium" 74 android:inputType="textCapWords" 75 android:singleLine="true" 76 android:imeOptions="actionNext" /> 77 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:layout_margin="2dip" 81 android:orientation="vertical"> 82 <TextView 83 android:layout_width="wrap_content" 84 android:layout_height="wrap_content" 85 android:gravity="center_vertical" 86 android:textAppearance="?android:attr/textAppearanceMedium" 87 android:text="@string/autofill_profile_editor_address_line_1" /> 88 <TextView 89 android:layout_width="wrap_content" 90 android:layout_height="wrap_content" 91 android:gravity="center_vertical" 92 android:textAppearance="?android:attr/textAppearanceSmall" 93 android:text="@string/autofill_profile_editor_address_line_1_hint" /> 94 </LinearLayout> 95 <EditText android:id="@+id/autofill_profile_editor_address_line_1_edit" 96 android:layout_width="match_parent" 97 android:layout_height="wrap_content" 98 android:gravity="center_vertical" 99 android:layout_margin="2dip" 100 android:textAppearance="?android:attr/textAppearanceMedium" 101 android:inputType="textCapWords" 102 android:singleLine="true" 103 android:imeOptions="actionNext" /> 104 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 105 android:layout_width="wrap_content" 106 android:layout_height="wrap_content" 107 android:layout_margin="2dip" 108 android:orientation="vertical"> 109 <TextView 110 android:layout_width="wrap_content" 111 android:layout_height="wrap_content" 112 android:gravity="center_vertical" 113 android:textAppearance="?android:attr/textAppearanceMedium" 114 android:text="@string/autofill_profile_editor_address_line_2" /> 115 <TextView 116 android:layout_width="wrap_content" 117 android:layout_height="wrap_content" 118 android:gravity="center_vertical" 119 android:textAppearance="?android:attr/textAppearanceSmall" 120 android:text="@string/autofill_profile_editor_address_line_2_hint" /> 121 </LinearLayout> 122 <EditText android:id="@+id/autofill_profile_editor_address_line_2_edit" 123 android:layout_width="match_parent" 124 android:layout_height="wrap_content" 125 android:gravity="bottom" 126 android:layout_margin="2dip" 127 android:textAppearance="?android:attr/textAppearanceMedium" 128 android:inputType="textCapWords" 129 android:singleLine="true" 130 android:imeOptions="actionNext" /> 131 <TextView 132 android:layout_width="wrap_content" 133 android:layout_height="wrap_content" 134 android:gravity="center_vertical" 135 android:layout_margin="2dip" 136 android:textAppearance="?android:attr/textAppearanceMedium" 137 android:text="@string/autofill_profile_editor_city" /> 138 <EditText android:id="@+id/autofill_profile_editor_city_edit" 139 android:layout_width="match_parent" 140 android:layout_height="wrap_content" 141 android:gravity="center_vertical" 142 android:layout_margin="2dip" 143 android:inputType="textCapWords" 144 android:textAppearance="?android:attr/textAppearanceMedium" 145 android:singleLine="true" 146 android:imeOptions="actionNext" /> 147 <TextView 148 android:layout_width="wrap_content" 149 android:layout_height="wrap_content" 150 android:gravity="center_vertical" 151 android:layout_margin="2dip" 152 android:textAppearance="?android:attr/textAppearanceMedium" 153 android:text="@string/autofill_profile_editor_state" /> 154 <EditText android:id="@+id/autofill_profile_editor_state_edit" 155 android:layout_width="match_parent" 156 android:layout_height="wrap_content" 157 android:gravity="center_vertical" 158 android:layout_margin="2dip" 159 android:inputType="textCapWords" 160 android:textAppearance="?android:attr/textAppearanceMedium" 161 android:singleLine="true" 162 android:imeOptions="actionNext" /> 163 <TextView 164 android:layout_width="wrap_content" 165 android:layout_height="wrap_content" 166 android:gravity="center_vertical" 167 android:layout_margin="2dip" 168 android:textAppearance="?android:attr/textAppearanceMedium" 169 android:text="@string/autofill_profile_editor_zip_code" /> 170 <EditText android:id="@+id/autofill_profile_editor_zip_code_edit" 171 android:layout_width="match_parent" 172 android:layout_height="wrap_content" 173 android:gravity="center_vertical" 174 android:layout_margin="2dip" 175 android:inputType="textCapCharacters" 176 android:textAppearance="?android:attr/textAppearanceMedium" 177 android:singleLine="true" 178 android:imeOptions="actionNext" /> 179 <TextView 180 android:layout_width="wrap_content" 181 android:layout_height="wrap_content" 182 android:gravity="center_vertical" 183 android:layout_margin="2dip" 184 android:textAppearance="?android:attr/textAppearanceMedium" 185 android:text="@string/autofill_profile_editor_country" /> 186 <EditText android:id="@+id/autofill_profile_editor_country_edit" 187 android:layout_width="match_parent" 188 android:layout_height="wrap_content" 189 android:gravity="center_vertical" 190 android:layout_margin="2dip" 191 android:inputType="textCapWords" 192 android:textAppearance="?android:attr/textAppearanceMedium" 193 android:singleLine="true" 194 android:imeOptions="actionNext" /> 195 <TextView 196 android:layout_width="wrap_content" 197 android:layout_height="wrap_content" 198 android:gravity="center_vertical" 199 android:layout_margin="2dip" 200 android:textAppearance="?android:attr/textAppearanceMedium" 201 android:text="@string/autofill_profile_editor_phone_number" /> 202 <EditText android:id="@+id/autofill_profile_editor_phone_number_edit" 203 android:layout_width="match_parent" 204 android:layout_height="wrap_content" 205 android:gravity="center_vertical" 206 android:layout_margin="2dip" 207 android:textAppearance="?android:attr/textAppearanceMedium" 208 android:singleLine="true" 209 android:phoneNumber="true" 210 android:imeOptions="actionNext" /> 211 <TextView 212 android:layout_width="wrap_content" 213 android:layout_height="wrap_content" 214 android:gravity="center_vertical" 215 android:layout_margin="2dip" 216 android:textAppearance="?android:attr/textAppearanceMedium" 217 android:text="@string/autofill_profile_editor_email_address" /> 218 <EditText android:id="@+id/autofill_profile_editor_email_address_edit" 219 android:layout_width="match_parent" 220 android:layout_height="wrap_content" 221 android:gravity="center_vertical" 222 android:layout_margin="2dip" 223 android:textAppearance="?android:attr/textAppearanceMedium" 224 android:inputType="textEmailAddress" 225 android:singleLine="true" 226 android:imeOptions="actionDone" /> 227 </LinearLayout> 228 </ScrollView> 229 230 <View 231 android:layout_height="12dip" 232 android:layout_width="match_parent" /> 233 234 <Button 235 android:id="@+id/autofill_profile_editor_save_button" 236 android:layout_width="wrap_content" 237 android:layout_height="wrap_content" 238 android:text="@string/autofill_profile_editor_save_profile" 239 android:textAppearance="?android:attr/textAppearanceMedium" /> 240 241 </LinearLayout> 242