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

Side by Side Diff: chrome/android/java/res/layout/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 unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2017 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2017 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <!-- Layout used by SpinnerPreference if singleLine is set to true and the devic e's smallest width 6 <!-- Layout used by SpinnerPreference if singleLine is set to true and the devic e's smallest width
7 is less than 360dp. This layout doesn't actually use a single line for text and spinner but is 7 is less than 360dp. This layout doesn't actually use a single line for text and spinner but is
8 used as a fallback for small devices. --> 8 used as a fallback for small devices. -->
9 9
10 <LinearLayout 10 <LinearLayout
11 xmlns:android="http://schemas.android.com/apk/res/android" 11 xmlns:android="http://schemas.android.com/apk/res/android"
12 style="@style/PreferenceLayout" 12 style="@style/PreferenceLayout"
13 android:layout_width="match_parent" 13 android:layout_width="match_parent"
14 android:layout_height="wrap_content" 14 android:layout_height="wrap_content"
15 android:paddingEnd="8dp"
15 android:orientation="vertical"> 16 android:orientation="vertical">
16 17
17 <TextView 18 <TextView
18 android:id="@+id/title" 19 android:id="@+id/title"
19 android:layout_height="wrap_content" 20 android:layout_height="wrap_content"
20 android:layout_width="match_parent" /> 21 android:layout_width="match_parent" />
21 22
22 <Spinner 23 <Spinner
23 android:id="@+id/spinner" 24 android:id="@+id/spinner"
24 android:layout_height="wrap_content" 25 android:layout_height="wrap_content"
25 android:layout_width="match_parent" 26 android:layout_width="match_parent"
26 android:textSize="16sp" 27 android:textSize="16sp"
27 android:paddingStart="0dp"
28 android:paddingTop="6dp" /> 28 android:paddingTop="6dp" />
29 29
30 </LinearLayout> 30 </LinearLayout>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698