blob: 8c90dd7d2b2f02bec3f774d364faa3e6e50d58bc [file] [log] [blame]
Ben Murdochaf554522010-09-10 22:09:30 +01001<?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-->
Ben Murdoch815752a2011-06-16 19:47:08 +010016<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
Ben Murdochaf554522010-09-10 22:09:30 +010017 android:layout_width="match_parent"
Ben Murdoch815752a2011-06-16 19:47:08 +010018 android:layout_height="match_parent"
19 android:orientation="vertical">
Ben Murdochaf554522010-09-10 22:09:30 +010020
Ben Murdoch815752a2011-06-16 19:47:08 +010021 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
Ben Murdoch36a23dd2010-10-13 13:20:06 +010022 android:layout_width="match_parent"
Ben Murdoch815752a2011-06-16 19:47:08 +010023 android:layout_height="0px"
24 android:layout_weight="1">
Ben Murdoch36a23dd2010-10-13 13:20:06 +010025
Ben Murdochd7d26812010-12-13 14:49:34 +000026 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
27 android:layout_width="match_parent"
Ben Murdoch815752a2011-06-16 19:47:08 +010028 android:layout_height="match_parent"
29 android:orientation="vertical">
Ben Murdoch36a23dd2010-10-13 13:20:06 +010030
Ben Murdoch815752a2011-06-16 19:47:08 +010031 <View
32 android:layout_height="10dip"
33 android:layout_width="match_parent" />
Ben Murdoch36a23dd2010-10-13 13:20:06 +010034
Ben Murdoch815752a2011-06-16 19:47:08 +010035 <TextView
Ben Murdochd7d26812010-12-13 14:49:34 +000036 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
Ben Murdoch815752a2011-06-16 19:47:08 +010038 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 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:gravity="center_vertical"
55 android:layout_margin="2dip"
56 android:textAppearance="?android:attr/textAppearanceMedium"
57 android:text="@string/autofill_profile_editor_name" />
58 <EditText android:id="@+id/autofill_profile_editor_name_edit"
59 android:layout_width="match_parent"
60 android:layout_height="wrap_content"
61 android:gravity="center_vertical"
62 android:layout_margin="2dip"
63 android:textAppearance="?android:attr/textAppearanceMedium"
64 android:inputType="textPersonName|textCapWords"
65 android:singleLine="true" />
66 </TableRow>
67 <TableRow>
68 <TextView
69 android:layout_width="wrap_content"
70 android:layout_height="wrap_content"
71 android:gravity="center_vertical"
72 android:layout_margin="2dip"
73 android:textAppearance="?android:attr/textAppearanceMedium"
74 android:text="@string/autofill_profile_editor_company_name" />
75 <EditText android:id="@+id/autofill_profile_editor_company_name_edit"
76 android:layout_width="match_parent"
77 android:layout_height="wrap_content"
78 android:gravity="center_vertical"
79 android:layout_margin="2dip"
80 android:textAppearance="?android:attr/textAppearanceMedium"
81 android:inputType="textCapWords"
82 android:singleLine="true" />
83 </TableRow>
84 <TableRow>
85 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
86 android:layout_width="wrap_content"
87 android:layout_height="wrap_content"
88 android:layout_margin="2dip"
89 android:orientation="vertical">
90 <TextView
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:gravity="center_vertical"
94 android:textAppearance="?android:attr/textAppearanceMedium"
95 android:text="@string/autofill_profile_editor_address_line_1" />
96 <TextView
97 android:layout_width="wrap_content"
98 android:layout_height="wrap_content"
99 android:gravity="center_vertical"
100 android:textAppearance="?android:attr/textAppearanceSmall"
101 android:text="@string/autofill_profile_editor_address_line_1_hint" />
102 </LinearLayout>
103 <EditText android:id="@+id/autofill_profile_editor_address_line_1_edit"
104 android:layout_width="match_parent"
105 android:layout_height="wrap_content"
106 android:gravity="center_vertical"
107 android:layout_margin="2dip"
108 android:textAppearance="?android:attr/textAppearanceMedium"
109 android:inputType="textCapWords"
110 android:singleLine="true" />
111 </TableRow>
112 <TableRow>
113 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
114 android:layout_width="wrap_content"
115 android:layout_height="wrap_content"
116 android:layout_margin="2dip"
117 android:orientation="vertical">
118 <TextView
119 android:layout_width="wrap_content"
120 android:layout_height="wrap_content"
121 android:gravity="center_vertical"
122 android:textAppearance="?android:attr/textAppearanceMedium"
123 android:text="@string/autofill_profile_editor_address_line_2" />
124 <TextView
125 android:layout_width="wrap_content"
126 android:layout_height="wrap_content"
127 android:gravity="center_vertical"
128 android:textAppearance="?android:attr/textAppearanceSmall"
129 android:text="@string/autofill_profile_editor_address_line_2_hint" />
130 </LinearLayout>
131 <EditText android:id="@+id/autofill_profile_editor_address_line_2_edit"
132 android:layout_width="match_parent"
133 android:layout_height="wrap_content"
134 android:gravity="bottom"
135 android:layout_margin="2dip"
136 android:textAppearance="?android:attr/textAppearanceMedium"
137 android:inputType="textCapWords"
138 android:singleLine="true" />
139 </TableRow>
140 <TableRow>
141 <TextView
142 android:layout_width="wrap_content"
143 android:layout_height="wrap_content"
144 android:gravity="center_vertical"
145 android:layout_margin="2dip"
146 android:textAppearance="?android:attr/textAppearanceMedium"
147 android:text="@string/autofill_profile_editor_city" />
148 <EditText android:id="@+id/autofill_profile_editor_city_edit"
149 android:layout_width="match_parent"
150 android:layout_height="wrap_content"
151 android:gravity="center_vertical"
152 android:layout_margin="2dip"
153 android:inputType="textCapWords"
154 android:textAppearance="?android:attr/textAppearanceMedium"
155 android:singleLine="true" />
156 </TableRow>
157 <TableRow>
158 <TextView
159 android:layout_width="wrap_content"
160 android:layout_height="wrap_content"
161 android:gravity="center_vertical"
162 android:layout_margin="2dip"
163 android:textAppearance="?android:attr/textAppearanceMedium"
164 android:text="@string/autofill_profile_editor_state" />
165 <EditText android:id="@+id/autofill_profile_editor_state_edit"
166 android:layout_width="match_parent"
167 android:layout_height="wrap_content"
168 android:gravity="center_vertical"
169 android:layout_margin="2dip"
170 android:inputType="textCapWords"
171 android:textAppearance="?android:attr/textAppearanceMedium"
172 android:singleLine="true" />
173 </TableRow>
174 <TableRow>
175 <TextView
176 android:layout_width="wrap_content"
177 android:layout_height="wrap_content"
178 android:gravity="center_vertical"
179 android:layout_margin="2dip"
180 android:textAppearance="?android:attr/textAppearanceMedium"
181 android:text="@string/autofill_profile_editor_zip_code" />
182 <EditText android:id="@+id/autofill_profile_editor_zip_code_edit"
183 android:layout_width="match_parent"
184 android:layout_height="wrap_content"
185 android:gravity="center_vertical"
186 android:layout_margin="2dip"
187 android:inputType="textCapCharacters"
188 android:textAppearance="?android:attr/textAppearanceMedium"
189 android:singleLine="true" />
190 </TableRow>
191 <TableRow>
192 <TextView
193 android:layout_width="wrap_content"
194 android:layout_height="wrap_content"
195 android:gravity="center_vertical"
196 android:layout_margin="2dip"
197 android:textAppearance="?android:attr/textAppearanceMedium"
198 android:text="@string/autofill_profile_editor_country" />
199 <EditText android:id="@+id/autofill_profile_editor_country_edit"
200 android:layout_width="match_parent"
201 android:layout_height="wrap_content"
202 android:gravity="center_vertical"
203 android:layout_margin="2dip"
204 android:inputType="textCapWords"
205 android:textAppearance="?android:attr/textAppearanceMedium"
206 android:singleLine="true" />
207 </TableRow>
208 <TableRow>
209 <TextView
210 android:layout_width="wrap_content"
211 android:layout_height="wrap_content"
212 android:gravity="center_vertical"
213 android:layout_margin="2dip"
214 android:textAppearance="?android:attr/textAppearanceMedium"
215 android:text="@string/autofill_profile_editor_phone_number" />
216 <EditText android:id="@+id/autofill_profile_editor_phone_number_edit"
217 android:layout_width="match_parent"
218 android:layout_height="wrap_content"
219 android:gravity="center_vertical"
220 android:layout_margin="2dip"
221 android:textAppearance="?android:attr/textAppearanceMedium"
222 android:singleLine="true"
223 android:phoneNumber="true" />
224 </TableRow>
225 <TableRow>
226 <TextView
227 android:layout_width="wrap_content"
228 android:layout_height="wrap_content"
229 android:gravity="center_vertical"
230 android:layout_margin="2dip"
231 android:textAppearance="?android:attr/textAppearanceMedium"
232 android:text="@string/autofill_profile_editor_email_address" />
233 <EditText android:id="@+id/autofill_profile_editor_email_address_edit"
234 android:layout_width="match_parent"
235 android:layout_height="wrap_content"
236 android:gravity="center_vertical"
237 android:layout_margin="2dip"
238 android:textAppearance="?android:attr/textAppearanceMedium"
239 android:inputType="textEmailAddress"
240 android:singleLine="true" />
241 </TableRow>
242 </TableLayout>
243 </LinearLayout>
244 </ScrollView>
245
246 <View
247 android:layout_height="12dip"
248 android:layout_width="match_parent" />
249
250 <Button
251 android:id="@+id/autofill_profile_editor_save_button"
252 android:layout_width="wrap_content"
253 android:layout_height="wrap_content"
254 android:text="@string/autofill_profile_editor_save_profile"
255 android:textAppearance="?android:attr/textAppearanceMedium" />
256
257</LinearLayout>
258