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 <!-- Represents a single item in the DownloadHistoryAdapterView. --> | |
7 <RelativeLayout | |
8 xmlns:android="http://schemas.android.com/apk/res/android" | |
Ian Wen
2016/07/14 18:16:25
Possibly simplify our namings? Such as download_it
gone
2016/07/14 19:11:56
Eh, I'm leaning towards keeping it this way becaus
| |
9 android:layout_width="wrap_content" | |
10 android:layout_height="wrap_content" | |
11 android:layout_marginStart="16dp" | |
12 android:layout_marginEnd="16dp" | |
13 android:layout_marginTop="16dp" | |
14 android:layout_marginBottom="16dp" > | |
15 | |
16 <ImageView | |
17 android:id="@+id/icon_view" | |
18 android:layout_width="48dp" | |
19 android:layout_height="48dp" | |
20 android:layout_alignParentStart="true" | |
21 android:layout_alignParentTop="true" | |
22 android:layout_alignParentBottom="true" | |
23 android:layout_marginEnd="16dp" | |
24 android:scaleType="centerInside" | |
25 android:background="@color/light_active_color" /> | |
26 | |
27 <TextView | |
28 android:id="@+id/filename_view" | |
29 android:layout_width="wrap_content" | |
30 android:layout_height="wrap_content" | |
31 android:layout_alignParentTop="true" | |
32 android:layout_alignParentEnd="true" | |
33 android:layout_toEndOf="@+id/icon_view" | |
34 android:singleLine="true" | |
35 android:textColor="@color/default_text_color" | |
36 android:textSize="16sp" /> | |
37 | |
38 <TextView | |
39 android:id="@+id/hostname_view" | |
40 android:layout_width="0dp" | |
41 android:layout_height="wrap_content" | |
42 android:layout_alignParentBottom="true" | |
43 android:layout_toEndOf="@+id/icon_view" | |
44 android:layout_toStartOf="@+id/filesize_view" | |
45 android:layout_below="@+id/filename_view" | |
46 android:layout_marginEnd="16dp" | |
47 android:layout_marginTop="0dp" | |
48 android:ellipsize="start" | |
49 android:singleLine="true" /> | |
50 | |
51 <TextView | |
52 android:id="@+id/filesize_view" | |
53 android:layout_width="wrap_content" | |
54 android:layout_height="wrap_content" | |
55 android:layout_alignParentBottom="true" | |
56 android:layout_alignParentEnd="true" | |
57 android:layout_below="@+id/filename_view" | |
58 android:layout_marginTop="0dp" | |
59 android:textAlignment="viewEnd" | |
60 android:singleLine="true" /> | |
61 | |
62 </RelativeLayout> | |
OLD | NEW |