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