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

Unified Diff: chrome/android/java/res/layout/download_item_view.xml

Issue 2143303002: [Downloads] Expose basic download history to UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lint Created 4 years, 5 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/download_main.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
new file mode 100644
index 0000000000000000000000000000000000000000..f12d54544ccec44e67f0ab3e36d03f3b56d6bd6f
--- /dev/null
+++ b/chrome/android/java/res/layout/download_item_view.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2016 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file. -->
+
+<!-- Represents a single item in the DownloadHistoryAdapterView. -->
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="16dp"
+ android:layout_marginEnd="16dp"
+ android:layout_marginTop="16dp"
+ android:layout_marginBottom="16dp" >
+
+ <ImageView
+ android:id="@+id/icon_view"
+ android:layout_width="48dp"
+ android:layout_height="48dp"
+ android:layout_alignParentStart="true"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentBottom="true"
+ android:layout_marginEnd="16dp"
+ android:contentDescription="@null"
+ android:scaleType="centerInside"
+ android:background="@color/light_active_color" />
+
+ <TextView
+ android:id="@+id/filename_view"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentEnd="true"
+ android:layout_toEndOf="@+id/icon_view"
+ android:singleLine="true"
+ android:textColor="@color/default_text_color"
+ android:textSize="16sp" />
+
+ <TextView
+ android:id="@+id/hostname_view"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:layout_toEndOf="@+id/icon_view"
+ android:layout_toStartOf="@+id/filesize_view"
+ android:layout_below="@+id/filename_view"
+ android:layout_marginEnd="16dp"
+ android:layout_marginTop="0dp"
+ android:ellipsize="start"
+ android:singleLine="true" />
+
+ <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_view"
+ android:layout_marginTop="0dp"
+ android:textAlignment="viewEnd"
+ android:singleLine="true" />
+
+</RelativeLayout>
« no previous file with comments | « no previous file | chrome/android/java/res/layout/download_main.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698