Index: chrome/android/java/res/layout/autofill_local_card_editor.xml |
diff --git a/chrome/android/java/res/layout/autofill_local_card_editor.xml b/chrome/android/java/res/layout/autofill_local_card_editor.xml |
index a1ec078d0c8879d44e9ea52535c1ee1cefa14fb3..b683ca1ee24e0d80d7efb89a1ee23991e389b70d 100644 |
--- a/chrome/android/java/res/layout/autofill_local_card_editor.xml |
+++ b/chrome/android/java/res/layout/autofill_local_card_editor.xml |
@@ -3,17 +3,18 @@ |
Use of this source code is governed by a BSD-style license that can be |
found in the LICENSE file. --> |
-<!-- EditText views in FloatLabelLayout require both hint and contentDescription to be set |
- to work correctly for accessibility because FloatLabelLayout sometimes clear hint. --> |
-<!--suppress ContentDescription --> |
<merge |
xmlns:android="http://schemas.android.com/apk/res/android" |
xmlns:app="http://schemas.android.com/apk/res-auto"> |
+ <!-- Name --> |
<org.chromium.chrome.browser.widget.CompatibilityTextInputLayout |
android:id="@+id/credit_card_name_label" |
+ android:labelFor="@+id/credit_card_name_edit" |
android:layout_width="match_parent" |
- android:layout_height="wrap_content"> |
+ android:layout_height="wrap_content" |
+ android:layout_marginBottom="@dimen/pref_autofill_content_spacing"> |
+ |
<EditText |
android:id="@+id/credit_card_name_edit" |
android:layout_width="match_parent" |
@@ -21,12 +22,17 @@ |
android:imeOptions="flagNoExtractUi" |
android:inputType="textCapWords" |
android:hint="@string/autofill_credit_card_editor_name" /> |
+ |
</org.chromium.chrome.browser.widget.CompatibilityTextInputLayout> |
+ <!-- Credit card number --> |
<org.chromium.chrome.browser.widget.CompatibilityTextInputLayout |
android:id="@+id/credit_card_number_label" |
+ android:labelFor="@+id/credit_card_number_edit" |
android:layout_width="match_parent" |
- android:layout_height="wrap_content"> |
+ android:layout_height="wrap_content" |
+ android:layout_marginBottom="@dimen/pref_autofill_content_spacing"> |
+ |
<EditText |
android:id="@+id/credit_card_number_edit" |
android:layout_width="match_parent" |
@@ -35,15 +41,17 @@ |
android:inputType="phone" |
android:digits="0123456789- " |
android:hint="@string/autofill_credit_card_editor_number" /> |
+ |
</org.chromium.chrome.browser.widget.CompatibilityTextInputLayout> |
+ <!-- Expiration date --> |
<TextView |
android:id="@+id/credit_card_expiration_label" |
+ android:labelFor="@+id/credit_card_expiration_month" |
android:layout_width="match_parent" |
android:layout_height="wrap_content" |
android:layout_marginStart="@dimen/pref_autofill_field_horizontal_padding" |
android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_padding" |
- android:focusable="true" |
android:textAppearance="@style/PreferenceFloatLabelTextAppearance" |
android:text="@string/autofill_credit_card_editor_expiration_date" /> |
@@ -51,18 +59,20 @@ |
android:id="@+id/credit_card_expiration_container" |
android:layout_width="match_parent" |
android:layout_height="wrap_content" |
+ android:layout_marginTop="@dimen/pref_autofill_field_top_margin" |
+ android:layout_marginBottom="@dimen/pref_autofill_content_spacing" |
android:layout_marginStart="@dimen/pref_autofill_field_horizontal_padding" |
android:layout_marginEnd="@dimen/pref_autofill_field_horizontal_padding" |
android:orientation="horizontal" |
- android:paddingTop="8dp" |
android:baselineAligned="false"> |
<LinearLayout |
+ android:id="@+id/credit_card_expiration_month" |
android:layout_width="0dp" |
android:layout_height="wrap_content" |
android:layout_weight="1" |
- android:orientation="vertical" |
- android:layout_marginEnd="@dimen/payments_section_large_spacing"> |
+ android:layout_marginEnd="@dimen/payments_section_large_spacing" |
+ android:orientation="vertical"> |
<android.support.v7.widget.AppCompatSpinner |
android:id="@+id/autofill_credit_card_editor_month_spinner" |
@@ -78,11 +88,14 @@ |
android:layout_height="wrap_content" |
android:layout_weight="1" |
android:orientation="vertical"> |
- <android.support.v7.widget.AppCompatSpinner |
- android:id="@+id/autofill_credit_card_editor_year_spinner" |
- android:layout_width="match_parent" |
- android:layout_height="wrap_content" /> |
- <View style="@style/PreferenceSpinnerUnderlineView" /> |
+ |
+ <android.support.v7.widget.AppCompatSpinner |
+ android:id="@+id/autofill_credit_card_editor_year_spinner" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" /> |
+ |
+ <View style="@style/PreferenceSpinnerUnderlineView" /> |
+ |
</LinearLayout> |
</LinearLayout> |