Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: chrome/android/java/res/layout/download_item_view.xml

Issue 2670083002: [Download Home] Displaying offline page bundle per day (Closed)
Patch Set: FindBugs fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/android/java/res/layout/offline_download_header.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/DownloadTitleStyle"
43 android:layout_height="wrap_content" 32 android:layout_alignParentEnd="true" />
44 android:layout_alignParentTop="true" 33
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
52 <TextView 34 <TextView
53 android:id="@+id/hostname_view" 35 android:id="@+id/hostname_view"
54 android:layout_width="0dp" 36 style="@style/DownloadDescriptionStyle"
55 android:layout_height="wrap_content"
56 android:layout_alignParentBottom="true"
57 android:layout_alignParentStart="true"
58 android:layout_toStartOf="@+id/filesize_view" 37 android:layout_toStartOf="@+id/filesize_view"
59 android:layout_below="@+id/filename_completed_view" 38 android:layout_below="@+id/filename_completed_view" />
60 android:layout_marginEnd="16dp" 39
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
67 <TextView 40 <TextView
68 android:id="@+id/filesize_view" 41 android:id="@+id/filesize_view"
69 android:layout_width="wrap_content" 42 style="@style/DownloadFileSizeStyle"
70 android:layout_height="wrap_content" 43 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> 44 </RelativeLayout>
80 45
81 <!-- Shown for downloads that haven't been completed. --> 46 <!-- Shown for downloads that haven't been completed. -->
82 <RelativeLayout 47 <RelativeLayout
83 android:id="@+id/progress_layout" 48 android:id="@+id/progress_layout"
84 android:layout_width="0dp" 49 android:layout_width="0dp"
85 android:layout_height="wrap_content" 50 android:layout_height="wrap_content"
86 android:layout_weight="1" > 51 android:layout_weight="1" >
87 52
88 <TextView 53 <TextView
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 android:layout_alignParentBottom="true" 116 android:layout_alignParentBottom="true"
152 android:layout_alignParentEnd="true" 117 android:layout_alignParentEnd="true"
153 android:padding="8dp" 118 android:padding="8dp"
154 android:background="?attr/selectableItemBackground" 119 android:background="?attr/selectableItemBackground"
155 android:contentDescription="@string/download_notification_ca ncel_button" 120 android:contentDescription="@string/download_notification_ca ncel_button"
156 android:src="@drawable/btn_close" 121 android:src="@drawable/btn_close"
157 chrome:tint="@color/google_grey_600" /> 122 chrome:tint="@color/google_grey_600" />
158 </RelativeLayout> 123 </RelativeLayout>
159 </LinearLayout> 124 </LinearLayout>
160 </view> 125 </view>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/res/layout/offline_download_header.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698