OLD | NEW |
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. |
3 Use of this source code is governed by a BSD-style license that can be | 3 Use of this source code is governed by a BSD-style license that can be |
4 found in the LICENSE file. --> | 4 found in the LICENSE file. --> |
5 | 5 |
6 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" | 6 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" |
| 7 xmlns:app="http://schemas.android.com/apk/res-auto" |
7 android:layout_width="match_parent" | 8 android:layout_width="match_parent" |
8 android:layout_height="match_parent" | 9 android:layout_height="match_parent" |
9 android:fillViewport="true" > | 10 android:fillViewport="true" > |
10 | 11 |
11 <LinearLayout | 12 <LinearLayout |
12 android:layout_width="match_parent" | 13 android:layout_width="match_parent" |
13 android:layout_height="wrap_content" | 14 android:layout_height="wrap_content" |
14 android:orientation="vertical" | 15 android:orientation="vertical" |
15 android:focusableInTouchMode="true" > | 16 android:focusableInTouchMode="true" > |
16 | 17 |
17 <LinearLayout | 18 <LinearLayout |
18 style="@style/PreferenceScreenLayout" | 19 style="@style/PreferenceScreenLayout" |
19 android:layout_width="match_parent" | 20 android:layout_width="match_parent" |
20 android:layout_height="wrap_content" | 21 android:layout_height="wrap_content" |
21 android:orientation="vertical"> | 22 android:orientation="vertical"> |
22 | 23 |
23 <!-- Editable fields for the profile --> | 24 <!-- Editable fields for the profile --> |
| 25 <TextView |
| 26 android:layout_width="match_parent" |
| 27 android:layout_height="wrap_content" |
| 28 android:textAppearance="@style/PreferenceFloatLabelTextAppearanc
e" |
| 29 android:text="@string/autofill_profile_editor_country" /> |
| 30 <Spinner |
| 31 android:id="@+id/countries" |
| 32 android:layout_width="fill_parent" |
| 33 android:layout_height="wrap_content" |
| 34 android:contentDescription="@string/autofill_profile_editor_coun
try" /> |
24 | 35 |
25 <LinearLayout | 36 <LinearLayout |
26 android:id="@+id/autofill_profile_widget_root" | 37 android:id="@+id/autofill_profile_widget_root" |
27 android:layout_width="match_parent" | 38 android:layout_width="match_parent" |
28 android:layout_height="wrap_content" | 39 android:layout_height="wrap_content" |
29 android:orientation="vertical" > | 40 android:orientation="vertical" > |
30 </LinearLayout> | 41 </LinearLayout> |
31 | 42 |
32 <TextView | 43 <org.chromium.chrome.browser.widget.FloatLabelLayout |
33 style="@style/BoldTextFieldLabel" | 44 android:id="@+id/phone_number_label" |
34 android:text="@string/autofill_profile_editor_phone_number" /> | 45 android:layout_width="match_parent" |
| 46 android:layout_height="wrap_content" > |
| 47 <EditText |
| 48 android:id="@+id/phone_number_edit" |
| 49 android:layout_width="match_parent" |
| 50 android:layout_height="wrap_content" |
| 51 android:imeOptions="flagNoExtractUi" |
| 52 android:inputType="phone" |
| 53 android:singleLine="true" |
| 54 android:hint="@string/autofill_profile_editor_phone_number" |
| 55 android:contentDescription="@string/autofill_profile_editor_
phone_number" /> |
| 56 </org.chromium.chrome.browser.widget.FloatLabelLayout> |
35 | 57 |
36 <EditText | 58 <org.chromium.chrome.browser.widget.FloatLabelLayout |
37 android:id="@+id/autofill_profile_editor_phone_number_edit" | 59 android:id="@+id/email_address_label" |
38 android:layout_width="match_parent" | 60 android:layout_width="match_parent" |
39 android:layout_height="wrap_content" | 61 android:layout_height="wrap_content" > |
40 android:imeOptions="flagNoExtractUi" | 62 <EditText |
41 android:inputType="phone" | 63 android:id="@+id/email_address_edit" |
42 android:singleLine="true" /> | 64 android:layout_width="match_parent" |
43 | 65 android:layout_height="wrap_content" |
44 <TextView | 66 android:imeOptions="flagNoExtractUi" |
45 style="@style/BoldTextFieldLabel" | 67 android:inputType="textEmailAddress" |
46 android:text="@string/autofill_profile_editor_email_address" /> | 68 android:singleLine="true" |
47 | 69 android:hint="@string/autofill_profile_editor_email_address" |
48 <EditText | 70 android:contentDescription="@string/autofill_profile_editor_
email_address" /> |
49 android:id="@+id/autofill_profile_editor_email_address_edit" | 71 </org.chromium.chrome.browser.widget.FloatLabelLayout> |
50 android:layout_width="match_parent" | |
51 android:layout_height="wrap_content" | |
52 android:imeOptions="flagNoExtractUi" | |
53 android:inputType="textEmailAddress" | |
54 android:singleLine="true" /> | |
55 | 72 |
56 </LinearLayout> | 73 </LinearLayout> |
57 | 74 |
58 <View style="@style/ButtonBarTopSpacer" /> | 75 <View style="@style/ButtonBarTopSpacer" /> |
59 <View style="@style/ButtonBarTopDivider" /> | 76 <View style="@style/ButtonBarTopDivider" /> |
60 | 77 |
61 <LinearLayout style="@style/ButtonBar" > | 78 <LinearLayout style="@style/ButtonBar" > |
62 <Button | 79 <Button |
63 android:id="@+id/autofill_profile_delete" | 80 android:id="@+id/autofill_profile_delete" |
64 style="@style/ButtonBarButton" | 81 style="@style/ButtonBarButton" |
65 android:text="@string/delete" /> | 82 android:text="@string/delete" /> |
66 | 83 |
67 <Button | 84 <Button |
68 android:id="@+id/autofill_profile_cancel" | 85 android:id="@+id/autofill_profile_cancel" |
69 style="@style/ButtonBarButton" | 86 style="@style/ButtonBarButton" |
70 android:text="@string/cancel" /> | 87 android:text="@string/cancel" /> |
71 | 88 |
72 <Button | 89 <Button |
73 android:id="@+id/autofill_profile_save" | 90 android:id="@+id/autofill_profile_save" |
74 style="@style/ButtonBarButton" | 91 style="@style/ButtonBarButton" |
75 android:text="@string/save" /> | 92 android:text="@string/save" /> |
76 </LinearLayout> | 93 </LinearLayout> |
77 </LinearLayout> | 94 </LinearLayout> |
78 | 95 |
79 </ScrollView> | 96 </ScrollView> |
OLD | NEW |