blob: b0e0f53fae3d6d461c332cfc8a37031a29bfc737 [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 Murdoch36a23dd2010-10-13 13:20:06 +010016
17<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
Ben Murdochaf554522010-09-10 22:09:30 +010018 android:layout_width="match_parent"
19 android:layout_height="match_parent"
Ben Murdoch36a23dd2010-10-13 13:20:06 +010020 android:fillViewport="true">
Ben Murdochaf554522010-09-10 22:09:30 +010021
Ben Murdoch36a23dd2010-10-13 13:20:06 +010022 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
23 android:layout_width="match_parent"
24 android:layout_height="match_parent"
Ben Murdoch603f0b82010-11-17 13:20:40 +000025 android:orientation="vertical">
Ben Murdochaf554522010-09-10 22:09:30 +010026
Ben Murdoch36a23dd2010-10-13 13:20:06 +010027 <TextView
28 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
30 android:textAppearance="?android:attr/textAppearanceLarge"
31 android:text="@string/pref_autofill_profile_editor" />
Ben Murdochaf554522010-09-10 22:09:30 +010032
Ben Murdoch36a23dd2010-10-13 13:20:06 +010033 <View
34 android:layout_height="20dip"
35 android:layout_width="match_parent" />
Ben Murdochaf554522010-09-10 22:09:30 +010036
Ben Murdoch36a23dd2010-10-13 13:20:06 +010037 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 android:layout_weight="1"
Ben Murdoch348422c2010-11-30 18:33:31 +000041 android:shrinkColumns="1"
Ben Murdoch36a23dd2010-10-13 13:20:06 +010042 android:stretchColumns="1">
43 <TableRow
44 android:layout_height="match_parent"
45 android:layout_weight="1">
46 <TextView
47 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:gravity="center_vertical"
50 android:padding="10dip"
51 android:textAppearance="?android:attr/textAppearanceMedium"
52 android:text="@string/autofill_profile_editor_name" />
53 <EditText android:id="@+id/autofill_profile_editor_name_edit"
54 android:layout_width="match_parent"
55 android:layout_height="wrap_content"
56 android:padding="10dip"
57 android:textAppearance="?android:attr/textAppearanceMedium"
58 android:inputType="textPersonName|textCapWords"
59 android:singleLine="true" />
60 </TableRow>
61 <TableRow
62 android:layout_height="match_parent"
63 android:layout_weight="1">
64 <TextView
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 android:gravity="center_vertical"
68 android:padding="10dip"
69 android:textAppearance="?android:attr/textAppearanceMedium"
70 android:text="@string/autofill_profile_editor_company_name" />
71 <EditText android:id="@+id/autofill_profile_editor_company_name_edit"
72 android:layout_width="match_parent"
73 android:layout_height="wrap_content"
74 android:padding="10dip"
75 android:textAppearance="?android:attr/textAppearanceMedium"
Ben Murdoch603f0b82010-11-17 13:20:40 +000076 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +010077 android:singleLine="true" />
78 </TableRow>
79 <TableRow
80 android:layout_height="match_parent"
81 android:layout_weight="1">
82 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
83 android:layout_width="wrap_content"
84 android:layout_height="wrap_content"
85 android:padding="10dip"
86 android:orientation="vertical">
87 <TextView
88 android:layout_width="wrap_content"
89 android:layout_height="wrap_content"
90 android:gravity="center_vertical"
91 android:textAppearance="?android:attr/textAppearanceMedium"
92 android:text="@string/autofill_profile_editor_address_line_1" />
93 <TextView
94 android:layout_width="wrap_content"
95 android:layout_height="wrap_content"
96 android:gravity="center_vertical"
97 android:textAppearance="?android:attr/textAppearanceSmall"
98 android:text="@string/autofill_profile_editor_address_line_1_hint" />
99 </LinearLayout>
100 <EditText android:id="@+id/autofill_profile_editor_address_line_1_edit"
101 android:layout_width="match_parent"
102 android:layout_height="wrap_content"
103 android:padding="10dip"
104 android:textAppearance="?android:attr/textAppearanceMedium"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000105 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100106 android:singleLine="true" />
107 </TableRow>
108 <TableRow
109 android:layout_height="match_parent"
110 android:layout_weight="1">
111 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
112 android:layout_width="wrap_content"
113 android:layout_height="wrap_content"
114 android:padding="10dip"
115 android:orientation="vertical">
116 <TextView
117 android:layout_width="wrap_content"
118 android:layout_height="wrap_content"
119 android:gravity="center_vertical"
120 android:textAppearance="?android:attr/textAppearanceMedium"
121 android:text="@string/autofill_profile_editor_address_line_2" />
122 <TextView
123 android:layout_width="wrap_content"
124 android:layout_height="wrap_content"
125 android:gravity="center_vertical"
126 android:textAppearance="?android:attr/textAppearanceSmall"
127 android:text="@string/autofill_profile_editor_address_line_2_hint" />
128 </LinearLayout>
129 <EditText android:id="@+id/autofill_profile_editor_address_line_2_edit"
130 android:layout_width="match_parent"
131 android:layout_height="wrap_content"
132 android:padding="10dip"
133 android:textAppearance="?android:attr/textAppearanceMedium"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000134 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100135 android:singleLine="true" />
136 </TableRow>
137 <TableRow
138 android:layout_height="match_parent"
139 android:layout_weight="1">
140 <TextView
141 android:layout_width="wrap_content"
142 android:layout_height="wrap_content"
143 android:gravity="center_vertical"
144 android:padding="10dip"
145 android:textAppearance="?android:attr/textAppearanceMedium"
146 android:text="@string/autofill_profile_editor_city" />
147 <EditText android:id="@+id/autofill_profile_editor_city_edit"
148 android:layout_width="match_parent"
149 android:layout_height="wrap_content"
150 android:padding="10dip"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000151 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100152 android:textAppearance="?android:attr/textAppearanceMedium"
153 android:singleLine="true" />
154 </TableRow>
155 <TableRow
156 android:layout_height="match_parent"
157 android:layout_weight="1">
158 <TextView
159 android:layout_width="wrap_content"
160 android:layout_height="wrap_content"
161 android:gravity="center_vertical"
162 android:padding="10dip"
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:padding="10dip"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000169 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100170 android:textAppearance="?android:attr/textAppearanceMedium"
171 android:singleLine="true" />
172 </TableRow>
173 <TableRow
174 android:layout_height="match_parent"
175 android:layout_weight="1">
176 <TextView
177 android:layout_width="wrap_content"
178 android:layout_height="wrap_content"
179 android:gravity="center_vertical"
180 android:padding="10dip"
181 android:textAppearance="?android:attr/textAppearanceMedium"
182 android:text="@string/autofill_profile_editor_zip_code" />
183 <EditText android:id="@+id/autofill_profile_editor_zip_code_edit"
184 android:layout_width="match_parent"
185 android:layout_height="wrap_content"
186 android:padding="10dip"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000187 android:inputType="textCapCharacters"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100188 android:textAppearance="?android:attr/textAppearanceMedium"
189 android:singleLine="true" />
190 </TableRow>
191 <TableRow
192 android:layout_height="match_parent"
193 android:layout_weight="1">
194 <TextView
195 android:layout_width="wrap_content"
196 android:layout_height="wrap_content"
197 android:gravity="center_vertical"
198 android:padding="10dip"
199 android:textAppearance="?android:attr/textAppearanceMedium"
200 android:text="@string/autofill_profile_editor_country" />
201 <EditText android:id="@+id/autofill_profile_editor_country_edit"
202 android:layout_width="match_parent"
203 android:layout_height="wrap_content"
204 android:padding="10dip"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000205 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100206 android:textAppearance="?android:attr/textAppearanceMedium"
207 android:singleLine="true" />
208 </TableRow>
209 <TableRow
210 android:layout_height="match_parent"
211 android:layout_weight="1">
212 <TextView
213 android:layout_width="wrap_content"
214 android:layout_height="wrap_content"
215 android:gravity="center_vertical"
216 android:padding="10dip"
217 android:textAppearance="?android:attr/textAppearanceMedium"
218 android:text="@string/autofill_profile_editor_phone_number" />
219 <EditText android:id="@+id/autofill_profile_editor_phone_number_edit"
220 android:layout_width="match_parent"
221 android:layout_height="wrap_content"
222 android:padding="10dip"
223 android:textAppearance="?android:attr/textAppearanceMedium"
224 android:singleLine="true"
225 android:phoneNumber="true" />
226 </TableRow>
227 <TableRow
228 android:layout_height="match_parent"
229 android:layout_weight="1">
230 <TextView
231 android:layout_width="wrap_content"
232 android:layout_height="wrap_content"
233 android:gravity="center_vertical"
234 android:padding="10dip"
235 android:textAppearance="?android:attr/textAppearanceMedium"
236 android:text="@string/autofill_profile_editor_email_address" />
237 <EditText android:id="@+id/autofill_profile_editor_email_address_edit"
238 android:layout_width="match_parent"
239 android:layout_height="wrap_content"
240 android:padding="10dip"
241 android:textAppearance="?android:attr/textAppearanceMedium"
242 android:inputType="textEmailAddress"
243 android:singleLine="true" />
244 </TableRow>
245 </TableLayout>
Ben Murdochaf554522010-09-10 22:09:30 +0100246
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100247 <View
248 android:layout_height="20dip"
249 android:layout_width="match_parent" />
250
251 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
252 android:layout_width="match_parent"
253 android:layout_height="wrap_content"
254 android:orientation="horizontal"
255 android:gravity="center">
256 <Button
257 android:id="@+id/autofill_profile_editor_save_button"
258 android:layout_width="wrap_content"
259 android:layout_height="wrap_content"
260 android:text="@string/autofill_profile_editor_save_profile"
261 android:textAppearance="?android:attr/textAppearanceMedium" />
262
263 <Button
264 android:id="@+id/autofill_profile_editor_cancel_button"
265 android:layout_width="wrap_content"
266 android:layout_height="wrap_content"
267 android:text="@string/cancel"
268 android:textAppearance="?android:attr/textAppearanceMedium" />
269
270 <Button
271 android:id="@+id/autofill_profile_editor_delete_button"
272 android:layout_width="wrap_content"
273 android:layout_height="wrap_content"
274 android:text="@string/autofill_profile_editor_delete_profile"
275 android:textAppearance="?android:attr/textAppearanceMedium" />
276 </LinearLayout>
277
278 </LinearLayout>
279</ScrollView>