1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<!-- CoordinatorLayout is necessary for various components (e.g. Snackbars, and
18     floating action buttons) to operate correctly. -->
19<androidx.coordinatorlayout.widget.CoordinatorLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    xmlns:app="http://schemas.android.com/apk/res-auto"
22    android:layout_width="match_parent"
23    android:layout_height="match_parent"
24    android:id="@+id/coordinator_layout">
25
26    <androidx.drawerlayout.widget.DrawerLayout
27        android:id="@+id/drawer_layout"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent">
30
31        <androidx.coordinatorlayout.widget.CoordinatorLayout
32            android:layout_width="match_parent"
33            android:layout_height="match_parent"
34            android:orientation="vertical">
35
36            <FrameLayout
37                android:layout_width="match_parent"
38                android:layout_height="match_parent"
39                app:layout_behavior="@string/scrolling_behavior">
40
41                <FrameLayout
42                    android:id="@+id/container_directory"
43                    android:clipToPadding="false"
44                    android:layout_width="match_parent"
45                    android:layout_height="match_parent"
46                    android:layout_weight="1" />
47
48                <FrameLayout
49                    android:id="@+id/container_search_fragment"
50                    android:clipToPadding="false"
51                    android:layout_width="match_parent"
52                    android:layout_height="match_parent" />
53
54                <!-- Drawer edge is a placeholder view used to capture hovering
55                     event on view edge to open the drawer. (b/28345294) -->
56                <View
57                    android:id="@+id/drawer_edge"
58                    android:background="@android:color/transparent"
59                    android:layout_width="@dimen/drawer_edge_width"
60                    android:layout_height="match_parent"/>
61            </FrameLayout>
62
63            <androidx.coordinatorlayout.widget.CoordinatorLayout
64                android:id="@+id/container_save"
65                android:layout_width="match_parent"
66                android:layout_height="wrap_content"
67                android:layout_gravity="bottom|center_horizontal"
68                android:background="?android:attr/colorBackgroundFloating"
69                android:elevation="8dp" />
70
71            <include layout="@layout/directory_app_bar"/>
72
73        </androidx.coordinatorlayout.widget.CoordinatorLayout>
74
75        <LinearLayout
76            android:id="@+id/drawer_roots"
77            android:layout_width="256dp"
78            android:layout_height="match_parent"
79            android:layout_gravity="start"
80            android:orientation="vertical"
81            android:elevation="0dp"
82            android:background="?android:attr/colorBackground">
83
84            <androidx.appcompat.widget.Toolbar
85                android:id="@+id/roots_toolbar"
86                android:layout_width="match_parent"
87                android:layout_height="?android:attr/actionBarSize"
88                android:background="?android:attr/colorBackground"
89                android:elevation="0dp"
90                app:titleTextAppearance="@style/DrawerMenuTitle"
91                app:titleTextColor="?android:colorAccent"/>
92
93            <FrameLayout
94                android:id="@+id/container_roots"
95                android:layout_width="match_parent"
96                android:layout_height="0dp"
97                android:layout_weight="1" />
98
99        </LinearLayout>
100
101    </androidx.drawerlayout.widget.DrawerLayout>
102</androidx.coordinatorlayout.widget.CoordinatorLayout>
103