Index: chrome/android/java/res/layout-sw360dp/preference_spinner_single_line.xml |
diff --git a/chrome/android/java/res/layout-sw360dp/preference_spinner_single_line.xml b/chrome/android/java/res/layout-sw360dp/preference_spinner_single_line.xml |
index eed1cbe2a5e9cdf21c5fdbacc29d8ce4ac4003b3..56b9db86e44f141155c0f206a94ec8d389ee259a 100644 |
--- a/chrome/android/java/res/layout-sw360dp/preference_spinner_single_line.xml |
+++ b/chrome/android/java/res/layout-sw360dp/preference_spinner_single_line.xml |
@@ -5,11 +5,13 @@ |
<!-- Layout used by SpinnerPreference if singleLine is set to true. --> |
-<RelativeLayout |
- xmlns:android="http://schemas.android.com/apk/res/android" |
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
style="@style/PreferenceLayout" |
android:layout_width="match_parent" |
- android:layout_height="wrap_content"> |
+ android:layout_height="wrap_content" |
+ android:orientation="horizontal" |
+ android:paddingEnd="8dp" |
+ android:paddingTop="22dp"> |
<TextView |
android:id="@+id/title" |
@@ -17,15 +19,12 @@ |
android:textColor="@color/google_grey_600" |
android:textAlignment="viewStart" |
android:layout_height="wrap_content" |
- android:layout_width="wrap_content" |
- android:layout_centerVertical="true" |
- android:layout_alignParentStart="true" |
- android:layout_toStartOf="@id/spinner" /> |
+ android:layout_width="0dp" |
+ android:layout_weight="1" /> |
<Spinner |
android:id="@+id/spinner" |
android:layout_height="wrap_content" |
android:layout_width="wrap_content" |
- android:layout_centerVertical="true" |
- android:layout_alignParentEnd="true" /> |
-</RelativeLayout> |
+ android:gravity="end"/> |
+</LinearLayout> |