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" |
| 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:contentDescription="@null" |
| 25 android:scaleType="centerInside" |
| 26 android:background="@color/light_active_color" /> |
| 27 |
| 28 <TextView |
| 29 android:id="@+id/filename_view" |
| 30 android:layout_width="wrap_content" |
| 31 android:layout_height="wrap_content" |
| 32 android:layout_alignParentTop="true" |
| 33 android:layout_alignParentEnd="true" |
| 34 android:layout_toEndOf="@+id/icon_view" |
| 35 android:singleLine="true" |
| 36 android:textColor="@color/default_text_color" |
| 37 android:textSize="16sp" /> |
| 38 |
| 39 <TextView |
| 40 android:id="@+id/hostname_view" |
| 41 android:layout_width="0dp" |
| 42 android:layout_height="wrap_content" |
| 43 android:layout_alignParentBottom="true" |
| 44 android:layout_toEndOf="@+id/icon_view" |
| 45 android:layout_toStartOf="@+id/filesize_view" |
| 46 android:layout_below="@+id/filename_view" |
| 47 android:layout_marginEnd="16dp" |
| 48 android:layout_marginTop="0dp" |
| 49 android:ellipsize="start" |
| 50 android:singleLine="true" /> |
| 51 |
| 52 <TextView |
| 53 android:id="@+id/filesize_view" |
| 54 android:layout_width="wrap_content" |
| 55 android:layout_height="wrap_content" |
| 56 android:layout_alignParentBottom="true" |
| 57 android:layout_alignParentEnd="true" |
| 58 android:layout_below="@+id/filename_view" |
| 59 android:layout_marginTop="0dp" |
| 60 android:textAlignment="viewEnd" |
| 61 android:singleLine="true" /> |
| 62 |
| 63 </RelativeLayout> |
OLD | NEW |