OLD | NEW |
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2014 The Chromium Authors. All rights reserved. |
3 | 3 |
4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
5 found in the LICENSE file. | 5 found in the LICENSE file. |
6 --> | 6 --> |
7 | 7 |
8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
9 android:id="@+id/dropdown_menu_text" | 9 android:orientation="horizontal" |
10 android:orientation="vertical" | |
11 android:gravity="center_vertical"> | 10 android:gravity="center_vertical"> |
12 | 11 |
13 <TextView android:id="@+id/dropdown_label" | 12 <LinearLayout |
| 13 android:id="@+id/dropdown_menu_text" |
14 android:layout_width="wrap_content" | 14 android:layout_width="wrap_content" |
15 android:layout_height="wrap_content" | 15 android:layout_height="wrap_content" |
16 android:layout_marginStart="10dp" | 16 android:orientation="vertical" |
17 android:layout_marginEnd="10dp" | 17 android:gravity="center_vertical"> |
18 android:ellipsize="end" | 18 |
19 android:singleLine="true" | 19 <TextView android:id="@+id/dropdown_label" |
20 android:textAlignment="viewStart" | 20 android:layout_width="wrap_content" |
21 android:textSize="18sp" | 21 android:layout_height="wrap_content" |
22 android:includeFontPadding="false"/> | 22 android:layout_marginStart="10dp" |
23 <TextView android:id="@+id/dropdown_sublabel" | 23 android:layout_marginEnd="10dp" |
| 24 android:ellipsize="end" |
| 25 android:singleLine="true" |
| 26 android:textAlignment="viewStart" |
| 27 android:textSize="18sp" |
| 28 android:includeFontPadding="false"/> |
| 29 <TextView android:id="@+id/dropdown_sublabel" |
| 30 android:layout_width="wrap_content" |
| 31 android:layout_height="wrap_content" |
| 32 android:layout_marginStart="10dp" |
| 33 android:layout_marginEnd="10dp" |
| 34 android:textSize="14sp" |
| 35 android:textColor="#8b8b8b" |
| 36 android:ellipsize="end" |
| 37 android:singleLine="true" |
| 38 android:textAlignment="viewStart" |
| 39 android:includeFontPadding="false"/> |
| 40 </LinearLayout> |
| 41 |
| 42 <!-- Spacer to move the icon to the right. --> |
| 43 <View |
| 44 android:layout_width="0dp" |
| 45 android:layout_height="0dp" |
| 46 android:layout_weight="1" /> |
| 47 |
| 48 <ImageView android:id="@+id/dropdown_icon" |
24 android:layout_width="wrap_content" | 49 android:layout_width="wrap_content" |
25 android:layout_height="wrap_content" | 50 android:layout_height="wrap_content" |
26 android:layout_marginStart="10dp" | 51 android:layout_margin="10dp"/> |
27 android:layout_marginEnd="10dp" | 52 |
28 android:textSize="14sp" | |
29 android:textColor="#8b8b8b" | |
30 android:ellipsize="end" | |
31 android:singleLine="true" | |
32 android:textAlignment="viewStart" | |
33 android:includeFontPadding="false"/> | |
34 </LinearLayout> | 53 </LinearLayout> |
OLD | NEW |