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