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