| OLD | NEW |
| 1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
| 2 <!-- Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 <!-- Represents a single item in the DownloadHistoryAdapterView. --> | 6 <!-- Represents a single item in the DownloadHistoryAdapterView. --> |
| 7 <view class="org.chromium.chrome.browser.download.ui.DownloadItemView" | 7 <view class="org.chromium.chrome.browser.download.ui.DownloadItemView" |
| 8 xmlns:android="http://schemas.android.com/apk/res/android" | 8 xmlns:android="http://schemas.android.com/apk/res/android" |
| 9 xmlns:chrome="http://schemas.android.com/apk/res-auto" | 9 xmlns:chrome="http://schemas.android.com/apk/res-auto" |
| 10 android:layout_width="wrap_content" | 10 android:layout_width="wrap_content" |
| 11 android:layout_height="wrap_content" > | 11 android:layout_height="wrap_content" > |
| 12 | 12 |
| 13 <!-- The end margin is not assigned because the cancel button overlaps it. -
-> | 13 <!-- The end margin is not assigned because the cancel button overlaps it. -
-> |
| 14 <LinearLayout | 14 <LinearLayout |
| 15 android:id="@+id/layout_container" | 15 android:id="@+id/layout_container" |
| 16 android:layout_width="match_parent" | 16 style="@style/DownloadRowContainer" > |
| 17 android:layout_height="wrap_content" | |
| 18 android:layout_marginStart="16dp" | |
| 19 android:layout_marginTop="16dp" | |
| 20 android:layout_marginBottom="16dp" | |
| 21 android:gravity="center_vertical" | |
| 22 android:orientation="horizontal" > | |
| 23 | 17 |
| 24 <org.chromium.chrome.browser.widget.TintedImageView | 18 <org.chromium.chrome.browser.widget.TintedImageView |
| 25 android:id="@+id/icon_view" | 19 android:id="@+id/icon_view" |
| 26 android:layout_width="@dimen/downloads_item_icon_size" | 20 style="@style/DownloadIconView" /> |
| 27 android:layout_height="@dimen/downloads_item_icon_size" | |
| 28 android:layout_marginEnd="16dp" | |
| 29 android:contentDescription="@null" | |
| 30 android:scaleType="center" | |
| 31 android:background="@color/light_active_color" /> | |
| 32 | 21 |
| 33 <!-- Shown for completed downloads. --> | 22 <!-- Shown for completed downloads. --> |
| 34 <RelativeLayout | 23 <RelativeLayout |
| 35 android:id="@+id/completed_layout" | 24 android:id="@+id/completed_layout" |
| 36 android:layout_width="0dp" | 25 android:layout_width="0dp" |
| 37 android:layout_height="wrap_content" | 26 android:layout_height="wrap_content" |
| 38 android:layout_weight="1" > | 27 android:layout_weight="1" > |
| 39 | 28 |
| 40 <TextView | 29 <TextView |
| 41 android:id="@+id/filename_completed_view" | 30 android:id="@+id/filename_completed_view" |
| 42 android:layout_width="wrap_content" | 31 style="@style/DownloadFileNameStyle" /> |
| 43 android:layout_height="wrap_content" | |
| 44 android:layout_alignParentTop="true" | |
| 45 android:layout_alignParentEnd="true" | |
| 46 android:layout_alignParentStart="true" | |
| 47 android:paddingEnd="16dp" | |
| 48 android:singleLine="true" | |
| 49 android:textColor="@color/default_text_color" | |
| 50 android:textSize="16sp" /> | |
| 51 | 32 |
| 52 <TextView | 33 <TextView |
| 53 android:id="@+id/hostname_view" | 34 android:id="@+id/hostname_view" |
| 54 android:layout_width="0dp" | 35 style="@style/DownloadHostNameStyle" |
| 55 android:layout_height="wrap_content" | |
| 56 android:layout_alignParentBottom="true" | |
| 57 android:layout_alignParentStart="true" | |
| 58 android:layout_toStartOf="@+id/filesize_view" | 36 android:layout_toStartOf="@+id/filesize_view" |
| 59 android:layout_below="@+id/filename_completed_view" | 37 android:layout_below="@+id/filename_completed_view" /> |
| 60 android:layout_marginEnd="16dp" | |
| 61 android:layout_marginTop="0dp" | |
| 62 android:textAlignment="viewStart" | |
| 63 android:textColor="@color/google_grey_600" | |
| 64 android:ellipsize="start" | |
| 65 android:singleLine="true" /> | |
| 66 | 38 |
| 67 <TextView | 39 <TextView |
| 68 android:id="@+id/filesize_view" | 40 android:id="@+id/filesize_view" |
| 69 android:layout_width="wrap_content" | 41 style="@style/DownloadFileSizeStyle" |
| 70 android:layout_height="wrap_content" | 42 android:layout_below="@+id/filename_completed_view"/> |
| 71 android:layout_alignParentBottom="true" | |
| 72 android:layout_alignParentEnd="true" | |
| 73 android:layout_below="@+id/filename_completed_view" | |
| 74 android:layout_marginTop="0dp" | |
| 75 android:paddingEnd="16dp" | |
| 76 android:textAlignment="viewEnd" | |
| 77 android:textColor="@color/google_grey_600" | |
| 78 android:singleLine="true" /> | |
| 79 </RelativeLayout> | 43 </RelativeLayout> |
| 80 | 44 |
| 81 <!-- Shown for downloads that haven't been completed. --> | 45 <!-- Shown for downloads that haven't been completed. --> |
| 82 <RelativeLayout | 46 <RelativeLayout |
| 83 android:id="@+id/progress_layout" | 47 android:id="@+id/progress_layout" |
| 84 android:layout_width="0dp" | 48 android:layout_width="0dp" |
| 85 android:layout_height="wrap_content" | 49 android:layout_height="wrap_content" |
| 86 android:layout_weight="1" > | 50 android:layout_weight="1" > |
| 87 | 51 |
| 88 <TextView | 52 <TextView |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 android:layout_alignParentBottom="true" | 115 android:layout_alignParentBottom="true" |
| 152 android:layout_alignParentEnd="true" | 116 android:layout_alignParentEnd="true" |
| 153 android:padding="8dp" | 117 android:padding="8dp" |
| 154 android:background="?attr/selectableItemBackground" | 118 android:background="?attr/selectableItemBackground" |
| 155 android:contentDescription="@string/download_notification_ca
ncel_button" | 119 android:contentDescription="@string/download_notification_ca
ncel_button" |
| 156 android:src="@drawable/btn_close" | 120 android:src="@drawable/btn_close" |
| 157 chrome:tint="@color/google_grey_600" /> | 121 chrome:tint="@color/google_grey_600" /> |
| 158 </RelativeLayout> | 122 </RelativeLayout> |
| 159 </LinearLayout> | 123 </LinearLayout> |
| 160 </view> | 124 </view> |
| OLD | NEW |