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

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

Issue 872023002: Use floating labels for preference forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chrome/browser/BUILD.gn 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/preference_float_label_layout.xml
diff --git a/chrome/android/java/res/layout/preference_switch.xml b/chrome/android/java/res/layout/preference_float_label_layout.xml
similarity index 54%
copy from chrome/android/java/res/layout/preference_switch.xml
copy to chrome/android/java/res/layout/preference_float_label_layout.xml
index fc6c61b1a2455e60d03d4382b4eedaf0dd8b2dc2..d4f2b26bc442b255b53de2b0db0b36d5dd399ca9 100644
--- a/chrome/android/java/res/layout/preference_switch.xml
+++ b/chrome/android/java/res/layout/preference_float_label_layout.xml
@@ -3,11 +3,10 @@
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
-<org.chromium.chrome.browser.widget.ChromeSwitchCompat
+<org.chromium.chrome.browser.widget.FloatLabelLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/switch_widget"
- android:layout_width="wrap_content"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:focusable="false"
- android:clickable="false"
- android:background="@null" />
+ android:id="@+id/float_label_layout"
+ app:floatLabelTextAppearance="@style/PreferenceFloatLabelTextAppearance" />

Powered by Google App Engine
This is Rietveld 408576698