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 <LinearLayout 42 android:layout_width="match_parent" 43 android:layout_height="match_parent" 44 android:orientation="vertical"> 45 46 <FrameLayout 47 android:id="@+id/container_directory" 48 android:clipToPadding="false" 49 android:layout_width="match_parent" 50 android:layout_height="0dp" 51 android:layout_weight="1" /> 52 53 </LinearLayout> 54 55 <!-- Drawer edge is a dummy view used to capture hovering event 56 on view edge to open the drawer. (b/28345294) --> 57 <View 58 android:id="@+id/drawer_edge" 59 android:background="@android:color/transparent" 60 android:layout_width="@dimen/drawer_edge_width" 61 android:layout_height="match_parent"/> 62 </FrameLayout> 63 64 <androidx.coordinatorlayout.widget.CoordinatorLayout 65 android:id="@+id/container_save" 66 android:layout_width="match_parent" 67 android:layout_height="wrap_content" 68 android:layout_gravity="bottom|center_horizontal" 69 android:background="?android:attr/colorBackgroundFloating" 70 android:elevation="8dp" /> 71 72 <include layout="@layout/directory_app_bar"/> 73 74 </androidx.coordinatorlayout.widget.CoordinatorLayout> 75 76 <LinearLayout 77 android:id="@+id/drawer_roots" 78 android:layout_width="256dp" 79 android:layout_height="match_parent" 80 android:layout_gravity="start" 81 android:orientation="vertical" 82 android:elevation="0dp" 83 android:background="?android:attr/colorBackground"> 84 85 <androidx.appcompat.widget.Toolbar 86 android:id="@+id/roots_toolbar" 87 android:layout_width="match_parent" 88 android:layout_height="?android:attr/actionBarSize" 89 android:background="?android:attr/colorBackground" 90 android:elevation="0dp" 91 app:titleTextAppearance="@style/DrawerMenuTitle" 92 app:titleTextColor="?android:colorPrimary"/> 93 94 <FrameLayout 95 android:id="@+id/container_roots" 96 android:layout_width="match_parent" 97 android:layout_height="0dp" 98 android:layout_weight="1" /> 99 100 </LinearLayout> 101 102 </androidx.drawerlayout.widget.DrawerLayout> 103</androidx.coordinatorlayout.widget.CoordinatorLayout> 104