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> |