1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
8 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
9 android:layout_width="match_parent"
10 android:layout_height="wrap_content"
11 android:gravity="center_vertical"
12 android:orientation="horizontal" >
14 <!-- These layout params are overwritten in DropdownAdapter.java -->
17 android:id="@+id/dropdown_label_wrapper"
18 android:layout_width="0dp"
19 android:layout_height="0dp"
20 android:layout_weight="1"
21 android:gravity="center_vertical"
22 android:orientation="vertical" >
25 android:id="@+id/dropdown_label"
26 android:layout_width="wrap_content"
27 android:layout_height="wrap_content"
28 android:layout_marginEnd="10dp"
29 android:layout_marginStart="10dp"
30 android:ellipsize="end"
31 android:includeFontPadding="false"
32 android:singleLine="true"
33 android:textAlignment="viewStart"
34 android:textColor="#333"
35 android:textSize="18sp" />
38 android:id="@+id/dropdown_sublabel"
39 android:layout_width="wrap_content"
40 android:layout_height="wrap_content"
41 android:layout_marginEnd="10dp"
42 android:layout_marginStart="10dp"
43 android:ellipsize="end"
44 android:includeFontPadding="false"
45 android:singleLine="true"
46 android:textAlignment="viewStart"
47 android:textColor="#8b8b8b"
48 android:textSize="14sp" />
52 android:id="@+id/dropdown_icon"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:layout_margin="8dp"
56 android:contentDescription="@null" />