blob: bdffebb0d63ea84ed269e78d956810624a11f2e4 [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"
41 android:stretchColumns="1">
42 <TableRow
43 android:layout_height="match_parent"
44 android:layout_weight="1">
45 <TextView
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:gravity="center_vertical"
49 android:padding="10dip"
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:padding="10dip"
56 android:textAppearance="?android:attr/textAppearanceMedium"
57 android:inputType="textPersonName|textCapWords"
58 android:singleLine="true" />
59 </TableRow>
60 <TableRow
61 android:layout_height="match_parent"
62 android:layout_weight="1">
63 <TextView
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:gravity="center_vertical"
67 android:padding="10dip"
68 android:textAppearance="?android:attr/textAppearanceMedium"
69 android:text="@string/autofill_profile_editor_company_name" />
70 <EditText android:id="@+id/autofill_profile_editor_company_name_edit"
71 android:layout_width="match_parent"
72 android:layout_height="wrap_content"
73 android:padding="10dip"
74 android:textAppearance="?android:attr/textAppearanceMedium"
Ben Murdoch603f0b82010-11-17 13:20:40 +000075 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +010076 android:singleLine="true" />
77 </TableRow>
78 <TableRow
79 android:layout_height="match_parent"
80 android:layout_weight="1">
81 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:padding="10dip"
85 android:orientation="vertical">
86 <TextView
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:gravity="center_vertical"
90 android:textAppearance="?android:attr/textAppearanceMedium"
91 android:text="@string/autofill_profile_editor_address_line_1" />
92 <TextView
93 android:layout_width="wrap_content"
94 android:layout_height="wrap_content"
95 android:gravity="center_vertical"
96 android:textAppearance="?android:attr/textAppearanceSmall"
97 android:text="@string/autofill_profile_editor_address_line_1_hint" />
98 </LinearLayout>
99 <EditText android:id="@+id/autofill_profile_editor_address_line_1_edit"
100 android:layout_width="match_parent"
101 android:layout_height="wrap_content"
102 android:padding="10dip"
103 android:textAppearance="?android:attr/textAppearanceMedium"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000104 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100105 android:singleLine="true" />
106 </TableRow>
107 <TableRow
108 android:layout_height="match_parent"
109 android:layout_weight="1">
110 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
111 android:layout_width="wrap_content"
112 android:layout_height="wrap_content"
113 android:padding="10dip"
114 android:orientation="vertical">
115 <TextView
116 android:layout_width="wrap_content"
117 android:layout_height="wrap_content"
118 android:gravity="center_vertical"
119 android:textAppearance="?android:attr/textAppearanceMedium"
120 android:text="@string/autofill_profile_editor_address_line_2" />
121 <TextView
122 android:layout_width="wrap_content"
123 android:layout_height="wrap_content"
124 android:gravity="center_vertical"
125 android:textAppearance="?android:attr/textAppearanceSmall"
126 android:text="@string/autofill_profile_editor_address_line_2_hint" />
127 </LinearLayout>
128 <EditText android:id="@+id/autofill_profile_editor_address_line_2_edit"
129 android:layout_width="match_parent"
130 android:layout_height="wrap_content"
131 android:padding="10dip"
132 android:textAppearance="?android:attr/textAppearanceMedium"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000133 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100134 android:singleLine="true" />
135 </TableRow>
136 <TableRow
137 android:layout_height="match_parent"
138 android:layout_weight="1">
139 <TextView
140 android:layout_width="wrap_content"
141 android:layout_height="wrap_content"
142 android:gravity="center_vertical"
143 android:padding="10dip"
144 android:textAppearance="?android:attr/textAppearanceMedium"
145 android:text="@string/autofill_profile_editor_city" />
146 <EditText android:id="@+id/autofill_profile_editor_city_edit"
147 android:layout_width="match_parent"
148 android:layout_height="wrap_content"
149 android:padding="10dip"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000150 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100151 android:textAppearance="?android:attr/textAppearanceMedium"
152 android:singleLine="true" />
153 </TableRow>
154 <TableRow
155 android:layout_height="match_parent"
156 android:layout_weight="1">
157 <TextView
158 android:layout_width="wrap_content"
159 android:layout_height="wrap_content"
160 android:gravity="center_vertical"
161 android:padding="10dip"
162 android:textAppearance="?android:attr/textAppearanceMedium"
163 android:text="@string/autofill_profile_editor_state" />
164 <EditText android:id="@+id/autofill_profile_editor_state_edit"
165 android:layout_width="match_parent"
166 android:layout_height="wrap_content"
167 android:padding="10dip"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000168 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100169 android:textAppearance="?android:attr/textAppearanceMedium"
170 android:singleLine="true" />
171 </TableRow>
172 <TableRow
173 android:layout_height="match_parent"
174 android:layout_weight="1">
175 <TextView
176 android:layout_width="wrap_content"
177 android:layout_height="wrap_content"
178 android:gravity="center_vertical"
179 android:padding="10dip"
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:padding="10dip"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000186 android:inputType="textCapCharacters"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100187 android:textAppearance="?android:attr/textAppearanceMedium"
188 android:singleLine="true" />
189 </TableRow>
190 <TableRow
191 android:layout_height="match_parent"
192 android:layout_weight="1">
193 <TextView
194 android:layout_width="wrap_content"
195 android:layout_height="wrap_content"
196 android:gravity="center_vertical"
197 android:padding="10dip"
198 android:textAppearance="?android:attr/textAppearanceMedium"
199 android:text="@string/autofill_profile_editor_country" />
200 <EditText android:id="@+id/autofill_profile_editor_country_edit"
201 android:layout_width="match_parent"
202 android:layout_height="wrap_content"
203 android:padding="10dip"
Ben Murdoch603f0b82010-11-17 13:20:40 +0000204 android:inputType="textCapWords"
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100205 android:textAppearance="?android:attr/textAppearanceMedium"
206 android:singleLine="true" />
207 </TableRow>
208 <TableRow
209 android:layout_height="match_parent"
210 android:layout_weight="1">
211 <TextView
212 android:layout_width="wrap_content"
213 android:layout_height="wrap_content"
214 android:gravity="center_vertical"
215 android:padding="10dip"
216 android:textAppearance="?android:attr/textAppearanceMedium"
217 android:text="@string/autofill_profile_editor_phone_number" />
218 <EditText android:id="@+id/autofill_profile_editor_phone_number_edit"
219 android:layout_width="match_parent"
220 android:layout_height="wrap_content"
221 android:padding="10dip"
222 android:textAppearance="?android:attr/textAppearanceMedium"
223 android:singleLine="true"
224 android:phoneNumber="true" />
225 </TableRow>
226 <TableRow
227 android:layout_height="match_parent"
228 android:layout_weight="1">
229 <TextView
230 android:layout_width="wrap_content"
231 android:layout_height="wrap_content"
232 android:gravity="center_vertical"
233 android:padding="10dip"
234 android:textAppearance="?android:attr/textAppearanceMedium"
235 android:text="@string/autofill_profile_editor_email_address" />
236 <EditText android:id="@+id/autofill_profile_editor_email_address_edit"
237 android:layout_width="match_parent"
238 android:layout_height="wrap_content"
239 android:padding="10dip"
240 android:textAppearance="?android:attr/textAppearanceMedium"
241 android:inputType="textEmailAddress"
242 android:singleLine="true" />
243 </TableRow>
244 </TableLayout>
Ben Murdochaf554522010-09-10 22:09:30 +0100245
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100246 <View
247 android:layout_height="20dip"
248 android:layout_width="match_parent" />
249
250 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
251 android:layout_width="match_parent"
252 android:layout_height="wrap_content"
253 android:orientation="horizontal"
254 android:gravity="center">
255 <Button
256 android:id="@+id/autofill_profile_editor_save_button"
257 android:layout_width="wrap_content"
258 android:layout_height="wrap_content"
259 android:text="@string/autofill_profile_editor_save_profile"
260 android:textAppearance="?android:attr/textAppearanceMedium" />
261
262 <Button
263 android:id="@+id/autofill_profile_editor_cancel_button"
264 android:layout_width="wrap_content"
265 android:layout_height="wrap_content"
266 android:text="@string/cancel"
267 android:textAppearance="?android:attr/textAppearanceMedium" />
268
269 <Button
270 android:id="@+id/autofill_profile_editor_delete_button"
271 android:layout_width="wrap_content"
272 android:layout_height="wrap_content"
273 android:text="@string/autofill_profile_editor_delete_profile"
274 android:textAppearance="?android:attr/textAppearanceMedium" />
275 </LinearLayout>
276
277 </LinearLayout>
278</ScrollView>