OLD | NEW |
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 <org.chromium.chrome.browser.download.ui.DownloadManagerUi | 6 <org.chromium.chrome.browser.download.ui.DownloadManagerUi |
7 xmlns:android="http://schemas.android.com/apk/res/android" | 7 xmlns:android="http://schemas.android.com/apk/res/android" |
8 android:layout_width="match_parent" | 8 android:layout_width="match_parent" |
9 android:layout_height="match_parent" > | 9 android:layout_height="match_parent" > |
10 | 10 |
11 <!-- MAIN CONTENT --> | 11 <!-- MAIN CONTENT --> |
12 <RelativeLayout | 12 <LinearLayout |
13 android:id="@+id/content_frame" | 13 android:id="@+id/content_frame" |
14 android:layout_width="match_parent" | 14 android:layout_width="match_parent" |
15 android:layout_height="match_parent" | 15 android:layout_height="match_parent" |
16 android:background="#ffffff"> | 16 android:background="#ffffff" |
| 17 android:orientation="vertical" > |
17 | 18 |
18 <org.chromium.chrome.browser.download.ui.DownloadManagerToolbar | 19 <org.chromium.chrome.browser.download.ui.DownloadManagerToolbar |
19 android:id="@id/action_bar" | 20 android:id="@id/action_bar" |
20 android:layout_width="match_parent" | 21 android:layout_width="match_parent" |
21 android:layout_height="?attr/actionBarSize" | 22 android:layout_height="?attr/actionBarSize" |
22 android:layout_alignParentTop="true" | 23 android:background="@color/appbar_background" /> |
23 android:layout_alignParentStart="true" | 24 |
24 android:layout_alignParentEnd="true" | |
25 android:background="@color/appbar_background" > | |
26 </org.chromium.chrome.browser.download.ui.DownloadManagerToolbar> | |
27 | |
28 <org.chromium.chrome.browser.widget.FadingShadowView | 25 <org.chromium.chrome.browser.widget.FadingShadowView |
29 android:id="@+id/shadow" | 26 android:id="@+id/shadow" |
30 android:layout_width="match_parent" | 27 android:layout_width="match_parent" |
31 android:layout_height="10dp" | 28 android:layout_height="10dp" |
32 android:layout_below="@id/action_bar" /> | 29 android:layout_marginBottom="-10dp" /> |
| 30 |
| 31 <android.support.v7.widget.RecyclerView |
| 32 android:id="@+id/recycler_view" |
| 33 android:layout_width="match_parent" |
| 34 android:layout_height="0dp" |
| 35 android:layout_weight="1" /> |
33 | 36 |
34 <!-- Insert RecyclerView here for showing items (or lack thereof). --> | 37 </LinearLayout> |
35 </RelativeLayout> | |
36 | 38 |
37 <!-- NAVIGATION DRAWER | 39 <!-- NAVIGATION DRAWER |
38 We can't assign a paddingStart or paddingEnd because the section highli
ghts are full-bleed. | 40 We can't assign a paddingStart or paddingEnd because the section highli
ghts are full-bleed. |
39 --> | 41 --> |
40 <LinearLayout | 42 <LinearLayout |
41 android:id="@+id/drawer_layout" | 43 android:id="@+id/drawer_layout" |
42 android:layout_width="@dimen/drawer_width" | 44 android:layout_width="@dimen/drawer_width" |
43 android:layout_height="match_parent" | 45 android:layout_height="match_parent" |
44 android:layout_gravity="start" | 46 android:layout_gravity="start" |
45 android:paddingTop="@dimen/drawer_margin_large" | 47 android:paddingTop="@dimen/drawer_margin_large" |
46 android:orientation="vertical" | 48 android:orientation="vertical" |
47 android:background="#ffffff" > | 49 android:background="#ffffff" > |
48 | 50 |
49 <include layout="@layout/download_manager_ui_space_widget"/> | 51 <include layout="@layout/download_manager_ui_space_widget"/> |
50 | 52 |
51 <ListView | 53 <ListView |
52 android:id="@+id/section_list" | 54 android:id="@+id/section_list" |
53 android:layout_width="match_parent" | 55 android:layout_width="match_parent" |
54 android:layout_height="0dp" | 56 android:layout_height="0dp" |
55 android:layout_weight="1" | 57 android:layout_weight="1" |
56 android:divider="@null" | 58 android:divider="@null" |
57 android:dividerHeight="0dp" /> | 59 android:dividerHeight="0dp" /> |
58 </LinearLayout> | 60 </LinearLayout> |
59 | 61 |
60 </org.chromium.chrome.browser.download.ui.DownloadManagerUi> | 62 </org.chromium.chrome.browser.download.ui.DownloadManagerUi> |
OLD | NEW |