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

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

Issue 2270233003: [Android] Implement empty view for download manager ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add copyright to the xml drawable Created 4 years, 4 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/download_content.xml
diff --git a/chrome/android/java/res/layout/download_content.xml b/chrome/android/java/res/layout/download_content.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e1637b64ba4dd1812d1e04f81d2592a94f974127
--- /dev/null
+++ b/chrome/android/java/res/layout/download_content.xml
@@ -0,0 +1,48 @@
+<?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. -->
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="#ffffff"
+ android:orientation="vertical" >
+
+ <org.chromium.chrome.browser.download.ui.DownloadManagerToolbar
+ android:id="@+id/action_bar"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize"
+ android:background="@color/appbar_background"
+ android:layout_alignParentTop="true" >
+
+ <include layout="@layout/number_roll_view" />
+
+ </org.chromium.chrome.browser.download.ui.DownloadManagerToolbar>
+
+ <android.support.v7.widget.RecyclerView
+ android:id="@+id/recycler_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_alignParentBottom="true"
+ android:layout_below="@id/action_bar" />
+
+ <org.chromium.chrome.browser.widget.FadingShadowView
+ android:id="@+id/shadow"
+ android:layout_width="match_parent"
+ android:layout_height="10dp"
+ android:layout_below="@id/action_bar" />
+
+ <TextView
+ android:id="@+id/empty_view"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerInParent="true"
gone 2016/08/24 18:07:57 This centers it relative to the RelativeLayout, do
Ian Wen 2016/08/24 18:32:42 Let's postpone it till the UX complains? :P
+ android:gravity="center"
+ android:padding="16dp"
+ android:drawablePadding="3dp"
+ android:text="@string/download_manager_ui_empty"
+ android:textColor="#5B5B5B"
+ android:textSize="16sp"
+ android:visibility="gone" />
+</RelativeLayout>
« no previous file with comments | « chrome/android/java/res/layout-sw720dp/download_main.xml ('k') | chrome/android/java/res/layout/download_main.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698