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 xmlns:app="http://schemas.android.com/apk/res-auto" |
8 android:layout_width="match_parent" | 8 android:layout_width="match_parent" |
9 android:layout_height="match_parent" | 9 android:layout_height="match_parent" |
10 android:fillViewport="true" | 10 android:fillViewport="true" |
11 android:scrollbarStyle="outsideOverlay" > | 11 android:scrollbarStyle="outsideOverlay" > |
12 | 12 |
13 <LinearLayout | 13 <LinearLayout |
14 android:layout_width="match_parent" | 14 android:layout_width="match_parent" |
15 android:layout_height="wrap_content" | 15 android:layout_height="wrap_content" |
16 android:orientation="vertical" > | 16 android:orientation="vertical" > |
17 | 17 |
18 <LinearLayout | 18 <LinearLayout |
19 style="@style/PreferenceScreenLayout" | 19 style="@style/PreferenceScreenLayout" |
20 android:layout_width="match_parent" | 20 android:layout_width="match_parent" |
21 android:layout_height="wrap_content" | 21 android:layout_height="wrap_content" |
22 android:orientation="vertical" | 22 android:orientation="vertical" |
23 android:focusableInTouchMode="true" > | 23 android:focusableInTouchMode="true" |
| 24 android:paddingTop="6dp" > |
24 | 25 |
25 <org.chromium.chrome.browser.widget.FloatLabelLayout | 26 <org.chromium.chrome.browser.widget.FloatLabelLayout |
| 27 android:id="@+id/credit_card_name_label" |
26 android:layout_width="match_parent" | 28 android:layout_width="match_parent" |
27 android:layout_height="wrap_content" > | 29 android:layout_height="wrap_content" > |
28 <EditText | 30 <EditText |
29 android:id="@+id/autofill_credit_card_editor_name_edit" | 31 android:id="@+id/credit_card_name_edit" |
30 android:layout_width="match_parent" | 32 android:layout_width="match_parent" |
31 android:layout_height="wrap_content" | 33 android:layout_height="wrap_content" |
32 android:imeOptions="flagNoExtractUi" | 34 android:imeOptions="flagNoExtractUi" |
33 android:contentDescription="@string/accessibility_autofill_c
c_name_textbox" | 35 android:contentDescription="@string/autofill_credit_card_edi
tor_name" |
34 android:inputType="textCapWords" | 36 android:inputType="textCapWords" |
35 android:hint="@string/autofill_credit_card_editor_name" /> | 37 android:hint="@string/autofill_credit_card_editor_name" /> |
36 </org.chromium.chrome.browser.widget.FloatLabelLayout> | 38 </org.chromium.chrome.browser.widget.FloatLabelLayout> |
37 | 39 |
38 <org.chromium.chrome.browser.widget.FloatLabelLayout | 40 <org.chromium.chrome.browser.widget.FloatLabelLayout |
| 41 android:id="@+id/credit_card_number_label" |
39 android:layout_width="match_parent" | 42 android:layout_width="match_parent" |
40 android:layout_height="wrap_content" > | 43 android:layout_height="wrap_content" > |
41 <EditText | 44 <EditText |
42 android:id="@+id/autofill_credit_card_editor_number_edit" | 45 android:id="@+id/credit_card_number_edit" |
43 android:layout_width="match_parent" | 46 android:layout_width="match_parent" |
44 android:contentDescription="@string/accessibility_autofill_c
c_number_textbox" | 47 android:contentDescription="@string/autofill_credit_card_edi
tor_number" |
45 android:layout_height="wrap_content" | 48 android:layout_height="wrap_content" |
46 android:imeOptions="flagNoExtractUi" | 49 android:imeOptions="flagNoExtractUi" |
47 android:inputType="phone" | 50 android:inputType="phone" |
48 android:digits="0123456789- " | 51 android:digits="0123456789- " |
49 android:hint="@string/autofill_credit_card_editor_number" /> | 52 android:hint="@string/autofill_credit_card_editor_number" /> |
50 </org.chromium.chrome.browser.widget.FloatLabelLayout> | 53 </org.chromium.chrome.browser.widget.FloatLabelLayout> |
51 | 54 |
52 <TextView | 55 <TextView |
53 android:layout_width="match_parent" | 56 android:layout_width="match_parent" |
54 android:layout_height="wrap_content" | 57 android:layout_height="wrap_content" |
55 android:focusable="true" | 58 android:focusable="true" |
56 android:paddingTop="10dp" | 59 android:paddingTop="@dimen/pref_autofill_field_top_padding" |
57 android:textAppearance="@style/PreferenceFloatLabelTextAppearanc
e" | 60 android:textAppearance="@style/PreferenceFloatLabelTextAppearanc
e" |
58 android:text="@string/autofill_credit_card_editor_expiration_dat
e" /> | 61 android:text="@string/autofill_credit_card_editor_expiration_dat
e" |
| 62 android:paddingStart="@dimen/pref_autofill_field_horizontal_padd
ing" |
| 63 android:paddingEnd="@dimen/pref_autofill_field_horizontal_paddin
g" /> |
59 | 64 |
60 <LinearLayout | 65 <LinearLayout |
61 android:layout_width="match_parent" | 66 android:layout_width="match_parent" |
62 android:layout_height="wrap_content" | 67 android:layout_height="wrap_content" |
63 android:orientation="horizontal" > | 68 android:orientation="horizontal" |
| 69 android:paddingTop="8dp" |
| 70 android:layout_marginStart="@dimen/pref_autofill_field_horizonta
l_padding" |
| 71 android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_
padding" > |
64 | 72 |
65 <Spinner | 73 <LinearLayout |
66 android:id="@+id/autofill_credit_card_editor_month_spinner" | |
67 android:layout_width="0dp" | 74 android:layout_width="0dp" |
68 android:layout_height="wrap_content" | 75 android:layout_height="wrap_content" |
69 android:layout_weight="1" | 76 android:layout_weight="1" |
70 android:paddingTop="8dp" /> | 77 android:orientation="vertical" |
| 78 android:paddingEnd="10dp" > |
| 79 <Spinner |
| 80 android:id="@+id/autofill_credit_card_editor_month_spinn
er" |
| 81 android:layout_width="match_parent" |
| 82 android:layout_height="wrap_content" /> |
| 83 <View style="@style/PreferenceSpinnerUnderlineView" /> |
| 84 </LinearLayout> |
71 | 85 |
72 <Spinner | 86 <LinearLayout |
73 android:id="@+id/autofill_credit_card_editor_year_spinner" | |
74 android:layout_width="0dp" | 87 android:layout_width="0dp" |
75 android:layout_height="wrap_content" | 88 android:layout_height="wrap_content" |
76 android:layout_weight="1" | 89 android:layout_weight="1" |
77 android:paddingTop="8dp" /> | 90 android:orientation="vertical" > |
| 91 <Spinner |
| 92 android:id="@+id/autofill_credit_card_editor_year_spin
ner" |
| 93 android:layout_width="match_parent" |
| 94 android:layout_height="wrap_content" /> |
| 95 <View style="@style/PreferenceSpinnerUnderlineView" /> |
| 96 </LinearLayout> |
78 </LinearLayout> | 97 </LinearLayout> |
79 </LinearLayout> | 98 </LinearLayout> |
80 | 99 |
81 <View style="@style/ButtonBarTopSpacer" /> | 100 <View style="@style/ButtonBarTopSpacer" /> |
82 <View style="@style/ButtonBarTopDivider" /> | 101 <View style="@style/ButtonBarTopDivider" /> |
83 | 102 |
84 <LinearLayout style="@style/ButtonBar" > | 103 <LinearLayout style="@style/ButtonBar" > |
85 <Button | 104 <Button |
86 android:id="@+id/autofill_credit_card_delete" | 105 android:id="@+id/autofill_credit_card_delete" |
87 style="@style/ButtonBarButton" | 106 style="@style/ButtonBarButton" |
88 android:text="@string/delete" /> | 107 android:text="@string/delete" /> |
89 | 108 |
90 <Button | 109 <Button |
91 android:id="@+id/autofill_credit_card_cancel" | 110 android:id="@+id/autofill_credit_card_cancel" |
92 style="@style/ButtonBarButton" | 111 style="@style/ButtonBarButton" |
93 android:text="@string/cancel" /> | 112 android:text="@string/cancel" /> |
94 | 113 |
95 <Button | 114 <Button |
96 android:id="@+id/autofill_credit_card_save" | 115 android:id="@+id/autofill_credit_card_save" |
97 style="@style/ButtonBarButton" | 116 style="@style/ButtonBarButton" |
98 android:text="@string/save" /> | 117 android:text="@string/save" /> |
99 </LinearLayout> | 118 </LinearLayout> |
100 </LinearLayout> | 119 </LinearLayout> |
101 | 120 |
102 </ScrollView> | 121 </ScrollView> |
OLD | NEW |