OLD | NEW |
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 its singleLine is set to true. --> | 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 |
| 8 used as a fallback for small devices. --> |
7 | 9 |
8 <RelativeLayout | 10 <LinearLayout |
9 xmlns:android="http://schemas.android.com/apk/res/android" | 11 xmlns:android="http://schemas.android.com/apk/res/android" |
10 style="@style/PreferenceLayout" | 12 style="@style/PreferenceLayout" |
11 android:layout_width="match_parent" | 13 android:layout_width="match_parent" |
12 android:layout_height="wrap_content"> | 14 android:layout_height="wrap_content" |
| 15 android:orientation="vertical"> |
13 | 16 |
14 <TextView | 17 <TextView |
15 android:id="@+id/title" | 18 android:id="@+id/title" |
16 style="@style/PreferenceTitle" | |
17 android:textAlignment="viewStart" | |
18 android:layout_height="wrap_content" | 19 android:layout_height="wrap_content" |
19 android:layout_width="wrap_content" | 20 android:layout_width="match_parent" /> |
20 android:layout_centerVertical="true" | |
21 android:layout_alignParentStart="true" | |
22 android:layout_toStartOf="@id/spinner" /> | |
23 | 21 |
24 <Spinner | 22 <Spinner |
25 android:id="@+id/spinner" | 23 android:id="@+id/spinner" |
26 android:layout_height="wrap_content" | 24 android:layout_height="wrap_content" |
27 android:layout_width="wrap_content" | 25 android:layout_width="match_parent" |
28 android:layout_centerVertical="true" | 26 android:textSize="16sp" |
29 android:layout_alignParentEnd="true" /> | 27 android:paddingStart="0dp" |
30 </RelativeLayout> | 28 android:paddingTop="6dp" /> |
| 29 |
| 30 </LinearLayout> |
OLD | NEW |