Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: chrome/android/java/res/layout/autofill_local_card_editor.xml

Issue 2137443002: Revert of [Payments] Update autofill/payments spacings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@payments_ongoing
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2016 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2016 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 <!-- EditText views in FloatLabelLayout require both hint and contentDescription to be set
7 to work correctly for accessibility because FloatLabelLayout sometimes clea r hint. -->
8 <!--suppress ContentDescription -->
6 <merge 9 <merge
7 xmlns:android="http://schemas.android.com/apk/res/android" 10 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:app="http://schemas.android.com/apk/res-auto"> 11 xmlns:app="http://schemas.android.com/apk/res-auto">
9 12
10 <!-- Name -->
11 <org.chromium.chrome.browser.widget.CompatibilityTextInputLayout 13 <org.chromium.chrome.browser.widget.CompatibilityTextInputLayout
12 android:id="@+id/credit_card_name_label" 14 android:id="@+id/credit_card_name_label"
13 android:labelFor="@+id/credit_card_name_edit"
14 android:layout_width="match_parent" 15 android:layout_width="match_parent"
15 android:layout_height="wrap_content" 16 android:layout_height="wrap_content">
16 android:layout_marginBottom="@dimen/pref_autofill_content_spacing">
17
18 <EditText 17 <EditText
19 android:id="@+id/credit_card_name_edit" 18 android:id="@+id/credit_card_name_edit"
20 android:layout_width="match_parent" 19 android:layout_width="match_parent"
21 android:layout_height="wrap_content" 20 android:layout_height="wrap_content"
22 android:imeOptions="flagNoExtractUi" 21 android:imeOptions="flagNoExtractUi"
23 android:inputType="textCapWords" 22 android:inputType="textCapWords"
24 android:hint="@string/autofill_credit_card_editor_name" /> 23 android:hint="@string/autofill_credit_card_editor_name" />
25
26 </org.chromium.chrome.browser.widget.CompatibilityTextInputLayout> 24 </org.chromium.chrome.browser.widget.CompatibilityTextInputLayout>
27 25
28 <!-- Credit card number -->
29 <org.chromium.chrome.browser.widget.CompatibilityTextInputLayout 26 <org.chromium.chrome.browser.widget.CompatibilityTextInputLayout
30 android:id="@+id/credit_card_number_label" 27 android:id="@+id/credit_card_number_label"
31 android:labelFor="@+id/credit_card_number_edit"
32 android:layout_width="match_parent" 28 android:layout_width="match_parent"
33 android:layout_height="wrap_content" 29 android:layout_height="wrap_content">
34 android:layout_marginBottom="@dimen/pref_autofill_content_spacing">
35
36 <EditText 30 <EditText
37 android:id="@+id/credit_card_number_edit" 31 android:id="@+id/credit_card_number_edit"
38 android:layout_width="match_parent" 32 android:layout_width="match_parent"
39 android:layout_height="wrap_content" 33 android:layout_height="wrap_content"
40 android:imeOptions="flagNoExtractUi" 34 android:imeOptions="flagNoExtractUi"
41 android:inputType="phone" 35 android:inputType="phone"
42 android:digits="0123456789- " 36 android:digits="0123456789- "
43 android:hint="@string/autofill_credit_card_editor_number" /> 37 android:hint="@string/autofill_credit_card_editor_number" />
44
45 </org.chromium.chrome.browser.widget.CompatibilityTextInputLayout> 38 </org.chromium.chrome.browser.widget.CompatibilityTextInputLayout>
46 39
47 <!-- Expiration date -->
48 <TextView 40 <TextView
49 android:id="@+id/credit_card_expiration_label" 41 android:id="@+id/credit_card_expiration_label"
50 android:labelFor="@+id/credit_card_expiration_month"
51 android:layout_width="match_parent" 42 android:layout_width="match_parent"
52 android:layout_height="wrap_content" 43 android:layout_height="wrap_content"
53 android:layout_marginStart="@dimen/pref_autofill_field_horizontal_paddin g" 44 android:layout_marginStart="@dimen/pref_autofill_field_horizontal_paddin g"
54 android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_padding" 45 android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_padding"
46 android:focusable="true"
55 android:textAppearance="@style/PreferenceFloatLabelTextAppearance" 47 android:textAppearance="@style/PreferenceFloatLabelTextAppearance"
56 android:text="@string/autofill_credit_card_editor_expiration_date" /> 48 android:text="@string/autofill_credit_card_editor_expiration_date" />
57 49
58 <LinearLayout 50 <LinearLayout
59 android:id="@+id/credit_card_expiration_container" 51 android:id="@+id/credit_card_expiration_container"
60 android:layout_width="match_parent" 52 android:layout_width="match_parent"
61 android:layout_height="wrap_content" 53 android:layout_height="wrap_content"
62 android:layout_marginTop="@dimen/pref_autofill_field_top_margin"
63 android:layout_marginBottom="@dimen/pref_autofill_content_spacing"
64 android:layout_marginStart="@dimen/pref_autofill_field_horizontal_paddin g" 54 android:layout_marginStart="@dimen/pref_autofill_field_horizontal_paddin g"
65 android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_padding" 55 android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_padding"
66 android:orientation="horizontal" 56 android:orientation="horizontal"
57 android:paddingTop="8dp"
67 android:baselineAligned="false"> 58 android:baselineAligned="false">
68 59
69 <LinearLayout 60 <LinearLayout
70 android:id="@+id/credit_card_expiration_month"
71 android:layout_width="0dp" 61 android:layout_width="0dp"
72 android:layout_height="wrap_content" 62 android:layout_height="wrap_content"
73 android:layout_weight="1" 63 android:layout_weight="1"
74 android:layout_marginEnd="@dimen/payments_section_large_spacing" 64 android:orientation="vertical"
75 android:orientation="vertical"> 65 android:layout_marginEnd="@dimen/payments_section_large_spacing">
76 66
77 <android.support.v7.widget.AppCompatSpinner 67 <android.support.v7.widget.AppCompatSpinner
78 android:id="@+id/autofill_credit_card_editor_month_spinner" 68 android:id="@+id/autofill_credit_card_editor_month_spinner"
79 android:layout_width="match_parent" 69 android:layout_width="match_parent"
80 android:layout_height="wrap_content" /> 70 android:layout_height="wrap_content" />
81 71
82 <View style="@style/PreferenceSpinnerUnderlineView" /> 72 <View style="@style/PreferenceSpinnerUnderlineView" />
83 73
84 </LinearLayout> 74 </LinearLayout>
85 75
86 <LinearLayout 76 <LinearLayout
87 android:layout_width="0dp" 77 android:layout_width="0dp"
88 android:layout_height="wrap_content" 78 android:layout_height="wrap_content"
89 android:layout_weight="1" 79 android:layout_weight="1"
90 android:orientation="vertical"> 80 android:orientation="vertical">
91 81 <android.support.v7.widget.AppCompatSpinner
92 <android.support.v7.widget.AppCompatSpinner 82 android:id="@+id/autofill_credit_card_editor_year_spinner"
93 android:id="@+id/autofill_credit_card_editor_year_spinner" 83 android:layout_width="match_parent"
94 android:layout_width="match_parent" 84 android:layout_height="wrap_content" />
95 android:layout_height="wrap_content" /> 85 <View style="@style/PreferenceSpinnerUnderlineView" />
96
97 <View style="@style/PreferenceSpinnerUnderlineView" />
98
99 </LinearLayout> 86 </LinearLayout>
100 </LinearLayout> 87 </LinearLayout>
101 88
102 <include layout="@layout/autofill_billing_address_dropdown" /> 89 <include layout="@layout/autofill_billing_address_dropdown" />
103 </merge> 90 </merge>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698