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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/layout/download_item_view.xml
diff --git a/chrome/android/java/res/layout/download_item_view.xml b/chrome/android/java/res/layout/download_item_view.xml
index e52746e28cc3d89a3033997243e57dcc301cf19f..110ad02bfb41feee03092874330e116ef9c2a4d0 100644
--- a/chrome/android/java/res/layout/download_item_view.xml
+++ b/chrome/android/java/res/layout/download_item_view.xml
@@ -13,22 +13,11 @@
<!-- The end margin is not assigned because the cancel button overlaps it. -->
<LinearLayout
android:id="@+id/layout_container"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:layout_marginTop="16dp"
- android:layout_marginBottom="16dp"
- android:gravity="center_vertical"
- android:orientation="horizontal" >
+ style="@style/DownloadRowContainer" >
<org.chromium.chrome.browser.widget.TintedImageView
android:id="@+id/icon_view"
- android:layout_width="@dimen/downloads_item_icon_size"
- android:layout_height="@dimen/downloads_item_icon_size"
- android:layout_marginEnd="16dp"
- android:contentDescription="@null"
- android:scaleType="center"
- android:background="@color/light_active_color" />
+ style="@style/DownloadIconView" />
<!-- Shown for completed downloads. -->
<RelativeLayout
@@ -39,43 +28,19 @@
<TextView
android:id="@+id/filename_completed_view"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_alignParentEnd="true"
- android:layout_alignParentStart="true"
- android:paddingEnd="16dp"
- android:singleLine="true"
- android:textColor="@color/default_text_color"
- android:textSize="16sp" />
-
+ style="@style/DownloadTitleStyle"
+ android:layout_alignParentEnd="true" />
+
<TextView
android:id="@+id/hostname_view"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_alignParentStart="true"
+ style="@style/DownloadDescriptionStyle"
android:layout_toStartOf="@+id/filesize_view"
- android:layout_below="@+id/filename_completed_view"
- android:layout_marginEnd="16dp"
- android:layout_marginTop="0dp"
- android:textAlignment="viewStart"
- android:textColor="@color/google_grey_600"
- android:ellipsize="start"
- android:singleLine="true" />
-
+ android:layout_below="@+id/filename_completed_view" />
+
<TextView
android:id="@+id/filesize_view"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_alignParentEnd="true"
- android:layout_below="@+id/filename_completed_view"
- android:layout_marginTop="0dp"
- android:paddingEnd="16dp"
- android:textAlignment="viewEnd"
- android:textColor="@color/google_grey_600"
- android:singleLine="true" />
+ style="@style/DownloadFileSizeStyle"
+ android:layout_below="@+id/filename_completed_view"/>
</RelativeLayout>
<!-- Shown for downloads that haven't been completed. -->
« 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