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<!-- focusableInTouchMode is set in order to force key events to go to the activity's global key 20 callback, which is necessary for proper event routing. See BaseActivity.onKeyDown. --> 21<android.support.design.widget.CoordinatorLayout 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:id="@+id/coordinator_layout" 26 android:focusableInTouchMode="true"> 27 28 <LinearLayout 29 android:layout_width="match_parent" 30 android:layout_height="match_parent" 31 android:orientation="vertical"> 32 33 <com.android.documentsui.DocumentsToolbar 34 android:id="@+id/toolbar" 35 android:layout_width="match_parent" 36 android:layout_height="?android:attr/actionBarSize" 37 android:background="?android:attr/colorPrimary" 38 android:elevation="8dp" 39 android:theme="?actionBarTheme" 40 android:popupTheme="?actionBarPopupTheme"> 41 42 <Spinner 43 android:id="@+id/stack" 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:layout_marginStart="4dp" 47 android:popupTheme="?actionBarPopupTheme" 48 android:background="@android:color/transparent" 49 android:overlapAnchor="true" /> 50 51 </com.android.documentsui.DocumentsToolbar> 52 53 <LinearLayout 54 android:layout_width="match_parent" 55 android:layout_height="0dp" 56 android:layout_weight="1" 57 android:orientation="horizontal" 58 android:baselineAligned="false"> 59 60 <FrameLayout 61 android:id="@+id/container_roots" 62 android:layout_width="256dp" 63 android:layout_height="match_parent" /> 64 65 <include layout="@layout/directory_cluster" 66 android:layout_width="0dp" 67 android:elevation="8dp" /> 68 69 </LinearLayout> 70 71 </LinearLayout> 72 73</android.support.design.widget.CoordinatorLayout> 74