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:orientation="horizontal" | 9 android:orientation="horizontal" |
10 android:layout_width="match_parent" | 10 android:layout_width="match_parent" |
11 android:layout_height="wrap_content" | 11 android:layout_height="wrap_content" |
12 android:gravity="center_vertical"> | 12 android:gravity="center_vertical"> |
13 | 13 |
| 14 <!-- These layout params are overwritten in DropdownAdapter.java --> |
14 <LinearLayout android:id="@+id/dropdown_label_wrapper" | 15 <LinearLayout android:id="@+id/dropdown_label_wrapper" |
15 android:layout_weight="1" | 16 android:layout_weight="1" |
16 android:layout_width="0dp" | 17 android:layout_width="0dp" |
17 android:layout_height="wrap_content" | 18 android:layout_height="0dp" |
18 android:orientation="vertical" | 19 android:orientation="vertical" |
19 android:gravity="center_vertical"> | 20 android:gravity="center_vertical"> |
20 | 21 |
21 <TextView android:id="@+id/dropdown_label" | 22 <TextView android:id="@+id/dropdown_label" |
22 android:layout_width="wrap_content" | 23 android:layout_width="wrap_content" |
23 android:layout_height="wrap_content" | 24 android:layout_height="wrap_content" |
24 android:layout_marginStart="10dp" | 25 android:layout_marginStart="10dp" |
25 android:layout_marginEnd="10dp" | 26 android:layout_marginEnd="10dp" |
26 android:ellipsize="end" | 27 android:ellipsize="end" |
27 android:singleLine="true" | 28 android:singleLine="true" |
(...skipping 12 matching lines...) Expand all Loading... |
40 android:textAlignment="viewStart" | 41 android:textAlignment="viewStart" |
41 android:includeFontPadding="false"/> | 42 android:includeFontPadding="false"/> |
42 </LinearLayout> | 43 </LinearLayout> |
43 | 44 |
44 <ImageView android:id="@+id/dropdown_icon" | 45 <ImageView android:id="@+id/dropdown_icon" |
45 android:layout_width="wrap_content" | 46 android:layout_width="wrap_content" |
46 android:layout_height="wrap_content" | 47 android:layout_height="wrap_content" |
47 android:layout_margin="8dp"/> | 48 android:layout_margin="8dp"/> |
48 | 49 |
49 </LinearLayout> | 50 </LinearLayout> |
OLD | NEW |