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

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

Issue 2670083002: [Download Home] Displaying offline page bundle per day (Closed)
Patch Set: Some 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
Index: chrome/android/java/res/layout/offline_download_header.xml
diff --git a/chrome/android/java/res/layout/offline_download_header.xml b/chrome/android/java/res/layout/offline_download_header.xml
new file mode 100644
index 0000000000000000000000000000000000000000..a825e8e7d7179cefc2be07f59e26884620b5ea3c
--- /dev/null
+++ b/chrome/android/java/res/layout/offline_download_header.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2017 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 the offline pages section header in the DownloadHistoryAdapterView. -->
+<view class="org.chromium.chrome.browser.download.ui.OfflineGroupHeaderView"
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:chrome="http://schemas.android.com/apk/res-auto"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" >
+
+ <LinearLayout
+ android:id="@+id/layout_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="16dp"
Theresa 2017/02/03 19:53:06 This should be extracted as a style in styles.xml
shaktisahu 2017/02/04 18:57:43 Done.
+ android:layout_marginTop="16dp"
+ android:layout_marginBottom="16dp"
+ android:gravity="center_vertical"
+ android:orientation="horizontal" >
+
+ <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:src="@drawable/ic_drive_site_white_24dp"
+ android:background="@color/light_active_color" />
+
+ <RelativeLayout
+ android:id="@+id/completed_layout"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1" >
+
+ <TextView
+ android:id="@+id/page_count_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentStart="true"
+ android:paddingEnd="16dp"
+ android:singleLine="true"
+ android:textColor="@color/default_text_color"
+ android:textSize="16sp" />
+
+ <ImageView
+ android:id="@+id/expand_icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_toEndOf="@+id/page_count_text"
+ android:layout_marginTop="0dp"
+ android:paddingEnd="16dp"
+ android:contentDescription="@null"
+ android:src="@drawable/ic_expanded" />
+
+ <TextView
+ android:id="@+id/description"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentStart="true"
+ android:layout_toStartOf="@+id/filesize_view"
+ android:layout_below="@+id/page_count_text"
+ android:layout_marginEnd="16dp"
+ android:layout_marginTop="0dp"
+ android:text="@string/download_manager_offline_header_description"
+ android:textAlignment="viewStart"
+ android:textColor="@color/google_grey_600"
+ 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/page_count_text"
+ android:layout_marginTop="0dp"
+ android:paddingEnd="16dp"
+ android:textAlignment="viewEnd"
+ android:textColor="@color/google_grey_600"
+ android:singleLine="true" />
+ </RelativeLayout>
+ </LinearLayout>
+</view>

Powered by Google App Engine
This is Rietveld 408576698