OLD | NEW |
---|---|
(Empty) | |
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <!-- Copyright 2016 The Chromium Authors. All rights reserved. | |
3 Use of this source code is governed by a BSD-style license that can be | |
4 found in the LICENSE file. --> | |
5 | |
6 <!-- TODO(twellington): Polish this after spec is available. --> | |
7 <view class="org.chromium.chrome.browser.history.HistoryItemView" | |
gone
2016/12/02 19:34:37
Could you just use the class instead of the "view
Theresa
2016/12/02 20:49:32
Done.
| |
8 xmlns:android="http://schemas.android.com/apk/res/android" | |
9 xmlns:chrome="http://schemas.android.com/apk/res-auto" | |
10 android:layout_width="wrap_content" | |
11 android:layout_height="wrap_content" > | |
12 | |
13 <RelativeLayout | |
14 android:id="@+id/content" | |
15 android:layout_width="match_parent" | |
16 android:layout_height="wrap_content" | |
17 android:layout_marginStart="16dp" | |
18 android:layout_marginEnd="16dp" | |
19 android:paddingTop="16dp" | |
20 android:paddingBottom="16dp" > | |
21 | |
22 <ImageView | |
23 android:id="@+id/icon_view" | |
24 android:layout_width="@dimen/default_favicon_size" | |
25 android:layout_height="@dimen/default_favicon_size" | |
26 android:layout_alignParentStart="true" | |
27 android:layout_centerVertical="true" | |
28 android:layout_marginEnd="16dp" | |
29 android:contentDescription="@null" | |
30 android:scaleType="center" | |
31 android:src="@drawable/default_favicon" /> | |
32 | |
33 <TextView | |
34 android:id="@+id/title" | |
35 android:layout_width="0dp" | |
36 android:layout_height="wrap_content" | |
37 android:layout_alignParentTop="true" | |
38 android:layout_toEndOf="@+id/icon_view" | |
39 android:layout_toStartOf="@+id/remove" | |
40 android:singleLine="true" | |
41 android:ellipsize="end" | |
42 android:textColor="@color/default_text_color" | |
43 android:textSize="16sp" /> | |
44 | |
45 <TextView | |
46 android:id="@+id/domain" | |
47 android:layout_width="0dp" | |
48 android:layout_height="wrap_content" | |
49 android:layout_alignParentBottom="true" | |
50 android:layout_toEndOf="@+id/icon_view" | |
51 android:layout_toStartOf="@+id/remove" | |
52 android:layout_below="@+id/title" | |
53 android:singleLine="true" | |
54 android:ellipsize="end" | |
55 android:textColor="@color/google_grey_600" | |
56 android:textSize="14sp" /> | |
57 | |
58 <org.chromium.chrome.browser.widget.TintedImageButton | |
59 android:id="@+id/remove" | |
60 android:layout_width="@dimen/selectable_list_layout_end_icon" | |
61 android:layout_height="@dimen/selectable_list_layout_end_icon" | |
62 android:layout_centerVertical="true" | |
63 android:layout_alignParentEnd="true" | |
64 android:background="@null" | |
65 android:contentDescription="@string/remove" | |
66 android:paddingEnd="16dp" | |
67 android:paddingStart="16dp" | |
68 android:src="@drawable/btn_trash" | |
69 chrome:tint="@color/dark_mode_tint" /> | |
70 </RelativeLayout> | |
71 | |
72 </view> | |
OLD | NEW |