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

Unified Diff: chrome/android/java/res/layout-sw360dp/preference_spinner_single_line.xml

Issue 2805003002: Improve single_line spinner layout (Closed)
Patch Set: change "Time period" to "Time range" Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/android/java/res/layout/preference_spinner_single_line.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | chrome/android/java/res/layout/preference_spinner_single_line.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698