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

Unified Diff: chrome/android/java/res/layout/autofill_credit_card_editor.xml

Issue 872023002: Use floating labels for preference forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor changes Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/layout/autofill_credit_card_editor.xml
diff --git a/chrome/android/java/res/layout/autofill_credit_card_editor.xml b/chrome/android/java/res/layout/autofill_credit_card_editor.xml
index 6657b52fb54e383760cdd55634e37a10475dcea9..c1153fb91a65ea6322a9c854f595b82c122e0d0b 100644
--- a/chrome/android/java/res/layout/autofill_credit_card_editor.xml
+++ b/chrome/android/java/res/layout/autofill_credit_card_editor.xml
@@ -4,6 +4,7 @@
found in the LICENSE file. -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
@@ -21,33 +22,38 @@
android:orientation="vertical"
android:focusableInTouchMode="true" >
- <TextView
- style="@style/BoldTextFieldLabel"
- android:text="@string/autofill_credit_card_editor_name" />
+ <org.chromium.chrome.browser.widget.FloatLabelLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
+ <EditText
+ android:id="@+id/autofill_credit_card_editor_name_edit"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:imeOptions="flagNoExtractUi"
+ android:contentDescription="@string/accessibility_autofill_cc_name_textbox"
+ android:inputType="textCapWords"
+ android:hint="@string/autofill_credit_card_editor_name" />
+ </org.chromium.chrome.browser.widget.FloatLabelLayout>
- <EditText
- android:id="@+id/autofill_credit_card_editor_name_edit"
+ <org.chromium.chrome.browser.widget.FloatLabelLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:imeOptions="flagNoExtractUi"
- android:contentDescription="@string/accessibility_autofill_cc_name_textbox"
- android:inputType="textCapWords" />
+ android:layout_height="wrap_content" >
+ <EditText
+ android:id="@+id/autofill_credit_card_editor_number_edit"
+ android:layout_width="match_parent"
+ android:contentDescription="@string/accessibility_autofill_cc_number_textbox"
+ android:layout_height="wrap_content"
+ android:imeOptions="flagNoExtractUi"
+ android:inputType="phone"
+ android:digits="0123456789- "
+ android:hint="@string/autofill_credit_card_editor_number" />
+ </org.chromium.chrome.browser.widget.FloatLabelLayout>
<TextView
- style="@style/BoldTextFieldLabel"
- android:text="@string/autofill_credit_card_editor_number" />
-
- <EditText
- android:id="@+id/autofill_credit_card_editor_number_edit"
android:layout_width="match_parent"
- android:contentDescription="@string/accessibility_autofill_cc_number_textbox"
android:layout_height="wrap_content"
- android:imeOptions="flagNoExtractUi"
- android:inputType="phone"
- android:digits="0123456789- "/>
-
- <TextView
- style="@style/BoldTextFieldLabel"
+ android:paddingTop="10dp"
+ android:textAppearance="@style/PreferenceFloatLabelTextAppearance"
android:text="@string/autofill_credit_card_editor_expiration_date" />
<LinearLayout
« no previous file with comments | « chrome/android/java/res/color/float_label.xml ('k') | chrome/android/java/res/layout/autofill_profile_editor.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698