1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2024 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 android:focusable="true"> 26 27 <LinearLayout 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:background="?attr/colorSurfaceContainer" 31 android:orientation="vertical"> 32 33 <LinearLayout 34 android:layout_width="match_parent" 35 android:layout_height="0dp" 36 android:layout_weight="1" 37 android:orientation="horizontal" 38 android:baselineAligned="false"> 39 40 <FrameLayout 41 android:id="@+id/container_roots" 42 android:layout_width="256dp" 43 android:layout_height="match_parent" 44 android:layout_marginTop="@dimen/space_medium_1" 45 /> 46 47 <LinearLayout 48 android:layout_width="match_parent" 49 android:layout_height="match_parent" 50 android:orientation="vertical" 51 android:background="@drawable/main_container_background" 52 android:layout_margin="@dimen/space_small_1" 53 android:layout_marginStart="0dp"> 54 55 <androidx.appcompat.widget.Toolbar 56 android:id="@+id/toolbar" 57 android:layout_width="match_parent" 58 android:layout_height="?android:attr/actionBarSize" 59 android:layout_margin="@dimen/search_bar_margin" 60 android:elevation="3dp" 61 android:popupTheme="?actionBarPopupTheme" 62 android:theme="?actionBarTheme" 63 app:collapseContentDescription="@string/button_back" 64 app:titleTextAppearance="@style/ToolbarTitle"> 65 66 <TextView 67 android:id="@+id/searchbar_title" 68 android:layout_width="match_parent" 69 android:layout_height="?android:attr/actionBarSize" 70 android:layout_marginEnd="@dimen/search_bar_text_margin_end" 71 android:layout_marginStart="@dimen/search_bar_text_margin_start" 72 android:drawablePadding="@dimen/search_bar_icon_padding" 73 android:drawableStart="@drawable/ic_menu_search" 74 android:gravity="center_vertical" 75 android:paddingStart="@dimen/search_bar_icon_padding" 76 android:text="@string/search_bar_hint" 77 android:textAppearance="@style/SearchBarTitle" /> 78 79 </androidx.appcompat.widget.Toolbar> 80 81 <include layout="@layout/directory_header" /> 82 83 <FrameLayout 84 android:layout_width="match_parent" 85 android:layout_height="0dp" 86 android:layout_weight="1"> 87 88 <FrameLayout 89 android:id="@+id/container_directory" 90 android:clipToPadding="false" 91 android:layout_width="match_parent" 92 android:layout_height="match_parent" /> 93 94 <FrameLayout 95 android:id="@+id/container_search_fragment" 96 android:clipToPadding="false" 97 android:layout_width="match_parent" 98 android:layout_height="match_parent" /> 99 100 </FrameLayout> 101 102 <androidx.coordinatorlayout.widget.CoordinatorLayout 103 android:id="@+id/container_save" 104 android:layout_width="match_parent" 105 android:layout_height="wrap_content" 106 android:background="?android:attr/colorBackgroundFloating" 107 android:elevation="8dp" /> 108 109 </LinearLayout> 110 111 </LinearLayout> 112 113 </LinearLayout> 114 115</androidx.coordinatorlayout.widget.CoordinatorLayout> 116