blob: 327cbd1ea8eca7ac6d450af8b29679b12aac9462 [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"
25 android:orientation="vertical"
26 android:padding="20dip">
Ben Murdochaf554522010-09-10 22:09:30 +010027
Ben Murdoch36a23dd2010-10-13 13:20:06 +010028 <TextView
29 android:layout_width="wrap_content"
30 android:layout_height="wrap_content"
31 android:textAppearance="?android:attr/textAppearanceLarge"
32 android:text="@string/pref_autofill_profile_editor" />
Ben Murdochaf554522010-09-10 22:09:30 +010033
Ben Murdoch36a23dd2010-10-13 13:20:06 +010034 <View
35 android:layout_height="20dip"
36 android:layout_width="match_parent" />
Ben Murdochaf554522010-09-10 22:09:30 +010037
Ben Murdoch36a23dd2010-10-13 13:20:06 +010038 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
39 android:layout_width="match_parent"
40 android:layout_height="wrap_content"
41 android:layout_weight="1"
42 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"
76 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"
104 android:singleLine="true" />
105 </TableRow>
106 <TableRow
107 android:layout_height="match_parent"
108 android:layout_weight="1">
109 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
110 android:layout_width="wrap_content"
111 android:layout_height="wrap_content"
112 android:padding="10dip"
113 android:orientation="vertical">
114 <TextView
115 android:layout_width="wrap_content"
116 android:layout_height="wrap_content"
117 android:gravity="center_vertical"
118 android:textAppearance="?android:attr/textAppearanceMedium"
119 android:text="@string/autofill_profile_editor_address_line_2" />
120 <TextView
121 android:layout_width="wrap_content"
122 android:layout_height="wrap_content"
123 android:gravity="center_vertical"
124 android:textAppearance="?android:attr/textAppearanceSmall"
125 android:text="@string/autofill_profile_editor_address_line_2_hint" />
126 </LinearLayout>
127 <EditText android:id="@+id/autofill_profile_editor_address_line_2_edit"
128 android:layout_width="match_parent"
129 android:layout_height="wrap_content"
130 android:padding="10dip"
131 android:textAppearance="?android:attr/textAppearanceMedium"
132 android:singleLine="true" />
133 </TableRow>
134 <TableRow
135 android:layout_height="match_parent"
136 android:layout_weight="1">
137 <TextView
138 android:layout_width="wrap_content"
139 android:layout_height="wrap_content"
140 android:gravity="center_vertical"
141 android:padding="10dip"
142 android:textAppearance="?android:attr/textAppearanceMedium"
143 android:text="@string/autofill_profile_editor_city" />
144 <EditText android:id="@+id/autofill_profile_editor_city_edit"
145 android:layout_width="match_parent"
146 android:layout_height="wrap_content"
147 android:padding="10dip"
148 android:textAppearance="?android:attr/textAppearanceMedium"
149 android:singleLine="true" />
150 </TableRow>
151 <TableRow
152 android:layout_height="match_parent"
153 android:layout_weight="1">
154 <TextView
155 android:layout_width="wrap_content"
156 android:layout_height="wrap_content"
157 android:gravity="center_vertical"
158 android:padding="10dip"
159 android:textAppearance="?android:attr/textAppearanceMedium"
160 android:text="@string/autofill_profile_editor_state" />
161 <EditText android:id="@+id/autofill_profile_editor_state_edit"
162 android:layout_width="match_parent"
163 android:layout_height="wrap_content"
164 android:padding="10dip"
165 android:textAppearance="?android:attr/textAppearanceMedium"
166 android:singleLine="true" />
167 </TableRow>
168 <TableRow
169 android:layout_height="match_parent"
170 android:layout_weight="1">
171 <TextView
172 android:layout_width="wrap_content"
173 android:layout_height="wrap_content"
174 android:gravity="center_vertical"
175 android:padding="10dip"
176 android:textAppearance="?android:attr/textAppearanceMedium"
177 android:text="@string/autofill_profile_editor_zip_code" />
178 <EditText android:id="@+id/autofill_profile_editor_zip_code_edit"
179 android:layout_width="match_parent"
180 android:layout_height="wrap_content"
181 android:padding="10dip"
182 android:textAppearance="?android:attr/textAppearanceMedium"
183 android:singleLine="true" />
184 </TableRow>
185 <TableRow
186 android:layout_height="match_parent"
187 android:layout_weight="1">
188 <TextView
189 android:layout_width="wrap_content"
190 android:layout_height="wrap_content"
191 android:gravity="center_vertical"
192 android:padding="10dip"
193 android:textAppearance="?android:attr/textAppearanceMedium"
194 android:text="@string/autofill_profile_editor_country" />
195 <EditText android:id="@+id/autofill_profile_editor_country_edit"
196 android:layout_width="match_parent"
197 android:layout_height="wrap_content"
198 android:padding="10dip"
199 android:textAppearance="?android:attr/textAppearanceMedium"
200 android:singleLine="true" />
201 </TableRow>
202 <TableRow
203 android:layout_height="match_parent"
204 android:layout_weight="1">
205 <TextView
206 android:layout_width="wrap_content"
207 android:layout_height="wrap_content"
208 android:gravity="center_vertical"
209 android:padding="10dip"
210 android:textAppearance="?android:attr/textAppearanceMedium"
211 android:text="@string/autofill_profile_editor_phone_number" />
212 <EditText android:id="@+id/autofill_profile_editor_phone_number_edit"
213 android:layout_width="match_parent"
214 android:layout_height="wrap_content"
215 android:padding="10dip"
216 android:textAppearance="?android:attr/textAppearanceMedium"
217 android:singleLine="true"
218 android:phoneNumber="true" />
219 </TableRow>
220 <TableRow
221 android:layout_height="match_parent"
222 android:layout_weight="1">
223 <TextView
224 android:layout_width="wrap_content"
225 android:layout_height="wrap_content"
226 android:gravity="center_vertical"
227 android:padding="10dip"
228 android:textAppearance="?android:attr/textAppearanceMedium"
229 android:text="@string/autofill_profile_editor_email_address" />
230 <EditText android:id="@+id/autofill_profile_editor_email_address_edit"
231 android:layout_width="match_parent"
232 android:layout_height="wrap_content"
233 android:padding="10dip"
234 android:textAppearance="?android:attr/textAppearanceMedium"
235 android:inputType="textEmailAddress"
236 android:singleLine="true" />
237 </TableRow>
238 </TableLayout>
Ben Murdochaf554522010-09-10 22:09:30 +0100239
Ben Murdoch36a23dd2010-10-13 13:20:06 +0100240 <View
241 android:layout_height="20dip"
242 android:layout_width="match_parent" />
243
244 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
245 android:layout_width="match_parent"
246 android:layout_height="wrap_content"
247 android:orientation="horizontal"
248 android:gravity="center">
249 <Button
250 android:id="@+id/autofill_profile_editor_save_button"
251 android:layout_width="wrap_content"
252 android:layout_height="wrap_content"
253 android:text="@string/autofill_profile_editor_save_profile"
254 android:textAppearance="?android:attr/textAppearanceMedium" />
255
256 <Button
257 android:id="@+id/autofill_profile_editor_cancel_button"
258 android:layout_width="wrap_content"
259 android:layout_height="wrap_content"
260 android:text="@string/cancel"
261 android:textAppearance="?android:attr/textAppearanceMedium" />
262
263 <Button
264 android:id="@+id/autofill_profile_editor_delete_button"
265 android:layout_width="wrap_content"
266 android:layout_height="wrap_content"
267 android:text="@string/autofill_profile_editor_delete_profile"
268 android:textAppearance="?android:attr/textAppearanceMedium" />
269 </LinearLayout>
270
271 </LinearLayout>
272</ScrollView>