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/suggestion_item" | 9 android:id="@+id/suggestion_item" |
10 android:layout_width="wrap_content" | 10 android:layout_width="wrap_content" |
11 android:layout_height="match_parent" | 11 android:layout_height="match_parent" |
12 android:gravity="center_vertical" | 12 android:gravity="center_vertical" |
13 android:orientation="horizontal"> | 13 android:orientation="horizontal"> |
14 | 14 |
15 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 15 <LinearLayout |
16 android:id="@+id/inner_layout" | 16 android:id="@+id/inner_layout" |
17 android:layout_width="0dp" | 17 android:layout_width="0dp" |
18 android:layout_height="match_parent" | 18 android:layout_height="match_parent" |
19 android:layout_weight="1" | 19 android:layout_weight="1" |
20 android:orientation="vertical" | 20 android:orientation="vertical" |
21 android:layout_gravity="center_vertical"> | 21 android:layout_gravity="center_vertical"> |
22 | 22 |
23 <TextView android:id="@+id/suggestion_item_label" | 23 <TextView android:id="@+id/suggestion_item_label" |
24 android:layout_width="wrap_content" | 24 android:layout_width="wrap_content" |
25 android:layout_height="wrap_content" | 25 android:layout_height="wrap_content" |
26 android:layout_marginStart="10dp" | 26 android:layout_marginStart="10dp" |
27 android:layout_marginEnd="10dp" | 27 android:layout_marginEnd="10dp" |
28 android:ellipsize="end" | 28 android:ellipsize="end" |
29 android:singleLine="true" | 29 android:singleLine="true" |
30 android:textAlignment="viewStart" | 30 android:textAlignment="viewStart" |
| 31 android:gravity="start" |
31 android:textSize="18sp" | 32 android:textSize="18sp" |
32 android:includeFontPadding="false"/> | 33 android:includeFontPadding="false"/> |
33 | 34 |
34 <TextView android:id="@+id/suggestion_item_sublabel" | 35 <TextView android:id="@+id/suggestion_item_sublabel" |
35 android:layout_width="wrap_content" | 36 android:layout_width="wrap_content" |
36 android:layout_height="wrap_content" | 37 android:layout_height="wrap_content" |
37 android:layout_marginStart="10dp" | 38 android:layout_marginStart="10dp" |
38 android:layout_marginEnd="10dp" | 39 android:layout_marginEnd="10dp" |
39 android:textSize="14sp" | 40 android:textSize="14sp" |
40 android:textColor="#8b8b8b" | 41 android:textColor="#8b8b8b" |
41 android:ellipsize="end" | 42 android:ellipsize="end" |
42 android:singleLine="true" | 43 android:singleLine="true" |
43 android:textAlignment="viewStart" | 44 android:textAlignment="viewStart" |
| 45 android:gravity="start" |
44 android:includeFontPadding="false"/> | 46 android:includeFontPadding="false"/> |
45 </LinearLayout> | 47 </LinearLayout> |
46 | 48 |
47 <ImageView | 49 <ImageView |
48 android:background="?android:attr/selectableItemBackground" | 50 android:background="?android:attr/selectableItemBackground" |
49 android:id="@+id/suggestion_item_arrow" | 51 android:id="@+id/suggestion_item_arrow" |
50 android:layout_width="50dp" | 52 android:layout_width="50dp" |
51 android:layout_height="match_parent" | 53 android:layout_height="match_parent" |
52 android:gravity="end" | 54 android:gravity="end" |
53 android:scaleType="center" | 55 android:scaleType="center" |
54 android:src="@drawable/suggestion_arrow"/> | 56 android:src="@drawable/suggestion_arrow" |
| 57 android:contentDescription="@null" /> |
55 </LinearLayout> | 58 </LinearLayout> |
56 | 59 |
OLD | NEW |