OLD | NEW |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. | 2 <!-- Copyright 2015 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 <TextView xmlns:android="http://schemas.android.com/apk/res/android" | 6 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
7 android:layout_width="match_parent" | 7 android:layout_width="match_parent" |
8 android:layout_height="48dp" | 8 android:layout_height="48dp" |
9 android:paddingStart="16dp" | 9 android:paddingStart="16dp" |
10 android:paddingEnd="16dp" | 10 android:paddingEnd="16dp"> |
11 android:ellipsize="end" | 11 <LinearLayout |
12 android:gravity="center_vertical" | 12 android:id="@+id/imageContainer" |
13 android:singleLine="true" /> | 13 android:layout_width="56dp" |
14 android:layout_height="match_parent" | |
15 android:gravity="center_vertical" | |
16 android:visibility="gone"> | |
17 <!-- contentDescription is added at runtime. --> | |
18 <ImageView | |
19 android:id="@+id/icon" | |
Ian Wen
2016/09/27 04:22:41
1. Instead of wrapping the image view with linear
ortuno
2016/10/04 07:16:18
I removed the linear layout. Now I just vertically
| |
20 android:contentDescription="@null" | |
21 android:layout_width="24dp" | |
22 android:layout_height="24dp"/> | |
23 </LinearLayout> | |
24 <TextView | |
25 android:id="@+id/description" | |
26 android:layout_width="wrap_content" | |
27 android:layout_height="match_parent" | |
28 android:layout_alignParentEnd="true" | |
29 android:layout_alignWithParentIfMissing="true" | |
30 android:layout_toEndOf="@+id/imageContainer" | |
31 android:ellipsize="end" | |
32 android:gravity="center_vertical" | |
33 android:singleLine="true"/> | |
34 </RelativeLayout> | |
OLD | NEW |