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 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | 6 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
7 android:id="@+id/list_item" | 7 android:id="@+id/list_item" |
8 android:layout_width="match_parent" | 8 android:layout_width="match_parent" |
9 android:layout_height="wrap_content" > | 9 android:layout_height="wrap_content" |
| 10 android:gravity="center_vertical" |
| 11 android:orientation="horizontal" > |
10 | 12 |
11 <ImageView | 13 <ImageView |
12 android:id="@+id/thumb" | 14 android:id="@+id/favicon" |
13 android:layout_width="match_parent" | 15 android:layout_width="64dp" |
14 android:layout_height="@dimen/widget_thumbnail_height" | 16 android:layout_height="48dp" |
15 android:background="@drawable/border_thumb_bookmarks_widget_holo" | 17 android:contentDescription="@null" |
16 android:cropToPadding="true" | 18 android:scaleType="center" /> |
17 android:scaleType="centerCrop" | |
18 android:src="@drawable/thumbnail_bookmarks_widget_no_bookmark_holo" | |
19 android:contentDescription="@null" /> | |
20 | 19 |
21 <LinearLayout | 20 <TextView |
22 android:layout_width="match_parent" | 21 android:id="@+id/title" |
| 22 android:layout_width="0dp" |
23 android:layout_height="wrap_content" | 23 android:layout_height="wrap_content" |
24 android:layout_alignBottom="@id/thumb" | 24 android:layout_weight="1" |
25 android:layout_marginBottom="2dp" | 25 android:gravity="center_vertical" |
26 android:layout_marginEnd="2dp" | 26 android:minHeight="48dp" |
27 android:layout_marginStart="2dp" | 27 android:paddingEnd="16dp" |
28 android:background="@drawable/overlay_url_bookmark_widget_holo" > | 28 android:singleLine="true" |
| 29 android:textAlignment="viewStart" |
| 30 android:textColor="@color/default_text_color" |
| 31 android:textSize="16sp" /> |
29 | 32 |
30 <ImageView | 33 </LinearLayout> |
31 android:id="@+id/favicon" | |
32 android:layout_width="@dimen/widget_favicon_size" | |
33 android:layout_height="@dimen/widget_favicon_size" | |
34 android:layout_gravity="center_vertical" | |
35 android:layout_marginBottom="4dp" | |
36 android:layout_marginEnd="8dp" | |
37 android:layout_marginStart="4dp" | |
38 android:layout_marginTop="4dp" | |
39 android:scaleType="centerInside" | |
40 android:src="@drawable/globe_incognito_favicon" | |
41 android:contentDescription="@null" /> | |
42 | |
43 <TextView | |
44 android:id="@+id/label" | |
45 android:layout_width="match_parent" | |
46 android:layout_height="wrap_content" | |
47 android:layout_gravity="center_vertical" | |
48 android:ellipsize="end" | |
49 android:singleLine="true" | |
50 android:textColor="@android:color/black" | |
51 android:textSize="12sp" | |
52 android:typeface="sans" /> | |
53 </LinearLayout> | |
54 | |
55 </RelativeLayout> | |
OLD | NEW |