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

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

Issue 2646313005: Implement additional parts of the new ui for CBD. (Closed)
Patch Set: Created 3 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_spinner_one_line.xml
diff --git a/chrome/android/java/res/layout/preference_spinner.xml b/chrome/android/java/res/layout/preference_spinner_one_line.xml
similarity index 54%
copy from chrome/android/java/res/layout/preference_spinner.xml
copy to chrome/android/java/res/layout/preference_spinner_one_line.xml
index 048ae535b727f309d84413e2cc503cee2bb9ed03..72e3e2d6875580163e29cb1d26063beb16604cea 100644
--- a/chrome/android/java/res/layout/preference_spinner.xml
+++ b/chrome/android/java/res/layout/preference_spinner_one_line.xml
@@ -5,27 +5,26 @@
<!-- Layout used by SpinnerPreference. -->
-<LinearLayout
+<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:chrome="http://schemas.android.com/apk/res-auto"
style="@style/PreferenceLayout"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
+ android:layout_height="wrap_content">
<TextView
android:id="@+id/title"
+ style="@style/PreferenceTitle"
+ android:textAlignment="viewStart"
android:layout_height="wrap_content"
- android:layout_width="match_parent" />
+ android:layout_width="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_alignParentStart="true"
+ android:layout_toStartOf="@id/spinner" />
<Spinner
android:id="@+id/spinner"
android:layout_height="wrap_content"
- android:layout_width="match_parent"
- android:paddingStart="0dp"
- android:paddingTop="6dp"
- android:paddingBottom="4dp" />
-
- <View style="@style/PreferenceSpinnerUnderlineView" />
-
-</LinearLayout>
+ android:layout_width="wrap_content"
+ android:layout_centerVertical="true"
+ android:layout_alignParentEnd="true" />
+</RelativeLayout>

Powered by Google App Engine
This is Rietveld 408576698