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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2016 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2016 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 6 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
7 xmlns:app="http://schemas.android.com/apk/res-auto"
8 android:layout_width="match_parent" 7 android:layout_width="match_parent"
9 android:layout_height="match_parent" 8 android:layout_height="match_parent"
10 android:background="#ffffff" 9 android:background="#ffffff"
11 android:orientation="vertical" > 10 android:orientation="vertical" >
12 11
13 <org.chromium.chrome.browser.download.ui.DownloadManagerToolbar 12 <org.chromium.chrome.browser.download.ui.DownloadManagerToolbar
14 android:id="@+id/action_bar" 13 android:id="@+id/action_bar"
15 android:layout_width="match_parent" 14 android:layout_width="match_parent"
16 android:layout_height="?attr/actionBarSize" 15 android:layout_height="?attr/actionBarSize"
17 android:background="@color/appbar_background" 16 android:background="@color/appbar_background"
(...skipping 10 matching lines...) Expand all
28 android:layout_alignParentBottom="true" 27 android:layout_alignParentBottom="true"
29 android:layout_below="@id/action_bar" 28 android:layout_below="@id/action_bar"
30 android:visibility="gone" /> 29 android:visibility="gone" />
31 30
32 <org.chromium.chrome.browser.widget.FadingShadowView 31 <org.chromium.chrome.browser.widget.FadingShadowView
33 android:id="@+id/shadow" 32 android:id="@+id/shadow"
34 android:layout_width="match_parent" 33 android:layout_width="match_parent"
35 android:layout_height="10dp" 34 android:layout_height="10dp"
36 android:layout_below="@id/action_bar" /> 35 android:layout_below="@id/action_bar" />
37 36
38 <LinearLayout 37 <TextView
39 android:id="@+id/empty_view" 38 android:id="@+id/empty_view"
40 android:layout_width="wrap_content" 39 android:layout_width="wrap_content"
41 android:layout_height="wrap_content" 40 android:layout_height="wrap_content"
42 android:layout_centerInParent="true" 41 android:layout_centerInParent="true"
43 android:orientation="vertical" 42 android:drawablePadding="3dp"
44 android:gravity="center" 43 android:gravity="center"
45 android:visibility="gone" > 44 android:text="@string/download_manager_ui_empty"
46 45 android:textColor="#5B5B5B"
47 <ImageView 46 android:textSize="16sp"
48 android:layout_width="wrap_content" 47 android:visibility="gone" />
49 android:layout_height="wrap_content"
50 android:layout_marginBottom="3dp"
51 app:srcCompat="@drawable/downloads_big" />
52
53 <TextView
54 android:layout_width="wrap_content"
55 android:layout_height="wrap_content"
56 android:text="@string/download_manager_ui_empty"
57 android:textColor="#5B5B5B"
58 android:textSize="16sp" />
59 </LinearLayout>
60 48
61 <org.chromium.chrome.browser.widget.LoadingView 49 <org.chromium.chrome.browser.widget.LoadingView
62 android:id="@+id/loading_view" 50 android:id="@+id/loading_view"
63 android:layout_width="wrap_content" 51 android:layout_width="wrap_content"
64 android:layout_height="wrap_content" 52 android:layout_height="wrap_content"
65 android:layout_centerInParent="true" /> 53 android:layout_centerInParent="true" />
66 </RelativeLayout> 54 </RelativeLayout>
OLDNEW
« 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