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

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

Issue 2343383002: Draw downloads empty view more efficiently (Closed)
Patch Set: make it not crash on K Created 4 years, 3 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/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
index 7798b599b05e7b65d261df3a97cc576815ae1cae..c21bd5827c8ae39fc3d06b3e85460944927ac71c 100644
--- a/chrome/android/java/res/layout/download_content.xml
+++ b/chrome/android/java/res/layout/download_content.xml
@@ -4,7 +4,6 @@
found in the LICENSE file. -->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"
@@ -35,28 +34,17 @@
android:layout_height="10dp"
android:layout_below="@id/action_bar" />
- <LinearLayout
+ <TextView
android:id="@+id/empty_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
- android:orientation="vertical"
+ android:drawablePadding="3dp"
android:gravity="center"
- android:visibility="gone" >
-
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginBottom="3dp"
- app:srcCompat="@drawable/downloads_big" />
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/download_manager_ui_empty"
- android:textColor="#5B5B5B"
- android:textSize="16sp" />
- </LinearLayout>
+ android:text="@string/download_manager_ui_empty"
+ android:textColor="#5B5B5B"
+ android:textSize="16sp"
+ android:visibility="gone" />
<org.chromium.chrome.browser.widget.LoadingView
android:id="@+id/loading_view"
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698