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<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 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" 48 android:shrinkColumns="1" 49 android:stretchColumns="1"> 50 <TableRow> 51 <TextView 52 style="@style/AutofillProfileTextView" 53 android:text="@string/autofill_profile_editor_name" /> 54 <EditText android:id="@+id/autofill_profile_editor_name_edit" 55 style="@style/AutofillProfileEditText" 56 android:inputType="textPersonName|textCapWords" /> 57 </TableRow> 58 <TableRow> 59 <TextView 60 style="@style/AutofillProfileTextView" 61 android:text="@string/autofill_profile_editor_company_name" /> 62 <EditText android:id="@+id/autofill_profile_editor_company_name_edit" 63 style="@style/AutofillProfileEditText" 64 android:inputType="textCapWords" /> 65 </TableRow> 66 <TableRow> 67 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 68 android:layout_width="wrap_content" 69 android:layout_height="wrap_content" 70 android:layout_margin="2dip" 71 android:orientation="vertical"> 72 <TextView 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:gravity="center_vertical" 76 android:textAppearance="?android:attr/textAppearanceMedium" 77 android:text="@string/autofill_profile_editor_address_line_1" /> 78 <TextView 79 android:layout_width="wrap_content" 80 android:layout_height="wrap_content" 81 android:gravity="center_vertical" 82 android:textAppearance="?android:attr/textAppearanceSmall" 83 android:text="@string/autofill_profile_editor_address_line_1_hint" /> 84 </LinearLayout> 85 <EditText android:id="@+id/autofill_profile_editor_address_line_1_edit" 86 style="@style/AutofillProfileEditText" 87 android:inputType="textCapWords" /> 88 </TableRow> 89 <TableRow> 90 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" 93 android:layout_margin="2dip" 94 android:orientation="vertical"> 95 <TextView 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" 98 android:gravity="center_vertical" 99 android:textAppearance="?android:attr/textAppearanceMedium" 100 android:text="@string/autofill_profile_editor_address_line_2" /> 101 <TextView 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:gravity="center_vertical" 105 android:textAppearance="?android:attr/textAppearanceSmall" 106 android:text="@string/autofill_profile_editor_address_line_2_hint" /> 107 </LinearLayout> 108 <EditText android:id="@+id/autofill_profile_editor_address_line_2_edit" 109 style="@style/AutofillProfileEditText" 110 android:inputType="textCapWords" /> 111 </TableRow> 112 <TableRow> 113 <TextView 114 style="@style/AutofillProfileTextView" 115 android:text="@string/autofill_profile_editor_city" /> 116 <EditText android:id="@+id/autofill_profile_editor_city_edit" 117 style="@style/AutofillProfileEditText" 118 android:inputType="textCapWords" /> 119 </TableRow> 120 <TableRow> 121 <TextView 122 style="@style/AutofillProfileTextView" 123 android:text="@string/autofill_profile_editor_state" /> 124 <EditText android:id="@+id/autofill_profile_editor_state_edit" 125 style="@style/AutofillProfileEditText" 126 android:inputType="textCapWords" /> 127 </TableRow> 128 <TableRow> 129 <TextView 130 style="@style/AutofillProfileTextView" 131 android:text="@string/autofill_profile_editor_zip_code" /> 132 <EditText android:id="@+id/autofill_profile_editor_zip_code_edit" 133 style="@style/AutofillProfileEditText" 134 android:inputType="textCapCharacters" /> 135 </TableRow> 136 <TableRow> 137 <TextView 138 style="@style/AutofillProfileTextView" 139 android:text="@string/autofill_profile_editor_country" /> 140 <EditText android:id="@+id/autofill_profile_editor_country_edit" 141 style="@style/AutofillProfileEditText" 142 android:inputType="textCapWords" /> 143 </TableRow> 144 <TableRow> 145 <TextView 146 style="@style/AutofillProfileTextView" 147 android:text="@string/autofill_profile_editor_phone_number" /> 148 <EditText android:id="@+id/autofill_profile_editor_phone_number_edit" 149 style="@style/AutofillProfileEditText" 150 android:phoneNumber="true" /> 151 </TableRow> 152 <TableRow> 153 <TextView 154 style="@style/AutofillProfileTextView" 155 android:text="@string/autofill_profile_editor_email_address" /> 156 <EditText android:id="@+id/autofill_profile_editor_email_address_edit" 157 style="@style/AutofillProfileEditText" 158 android:inputType="textEmailAddress" 159 android:imeOptions="actionDone|flagNoExtractUi" /> 160 </TableRow> 161 </TableLayout> 162 </LinearLayout> 163 </ScrollView> 164</LinearLayout> 165 166