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 <android.support.design.widget.CoordinatorLayout 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:id="@+id/coordinator_layout" 24 android:focusable="true"> 25 26 <LinearLayout 27 android:layout_width="match_parent" 28 android:layout_height="match_parent" 29 android:orientation="vertical"> 30 31 <Toolbar 32 android:id="@+id/toolbar" 33 android:layout_width="match_parent" 34 android:layout_height="?android:attr/actionBarSize" 35 android:background="?android:attr/colorPrimary" 36 android:elevation="8dp" 37 android:theme="?actionBarTheme" 38 android:popupTheme="?actionBarPopupTheme"> 39 40 <com.android.documentsui.HorizontalBreadcrumb 41 android:id="@+id/horizontal_breadcrumb" 42 android:layout_marginRight="20dp" 43 android:layout_width="match_parent" 44 android:layout_height="wrap_content" /> 45 46 </Toolbar> 47 48 <LinearLayout 49 android:layout_width="match_parent" 50 android:layout_height="0dp" 51 android:layout_weight="1" 52 android:orientation="horizontal" 53 android:baselineAligned="false"> 54 55 <FrameLayout 56 android:id="@+id/container_roots" 57 android:layout_width="256dp" 58 android:layout_height="match_parent" /> 59 60 <include layout="@layout/directory_cluster" 61 android:layout_width="0dp" 62 android:elevation="8dp" /> 63 64 </LinearLayout> 65 66 </LinearLayout> 67 68 </android.support.design.widget.CoordinatorLayout> 69