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<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:id="@+id/drawer_layout"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent">
21
22    <LinearLayout
23        android:layout_width="match_parent"
24        android:layout_height="match_parent"
25        android:orientation="vertical">
26
27        <com.android.documentsui.DocumentsToolBar
28            android:id="@+id/toolbar"
29            android:layout_width="match_parent"
30            android:layout_height="?android:attr/actionBarSize"
31            android:background="?android:attr/colorPrimary"
32            android:elevation="8dp"
33            android:theme="?android:attr/actionBarTheme">
34
35            <Spinner
36                android:id="@+id/stack"
37                android:layout_width="wrap_content"
38                android:layout_height="wrap_content"
39                android:layout_marginStart="4dp"
40                android:overlapAnchor="true" />
41
42        </com.android.documentsui.DocumentsToolBar>
43
44        <com.android.documentsui.DirectoryContainerView
45            android:id="@+id/container_directory"
46            android:layout_width="match_parent"
47            android:layout_height="0dp"
48            android:layout_weight="1" />
49
50        <FrameLayout
51            android:id="@+id/container_save"
52            android:layout_width="match_parent"
53            android:layout_height="wrap_content"
54            android:background="@color/material_grey_50"
55            android:elevation="8dp" />
56
57    </LinearLayout>
58
59    <LinearLayout
60        android:id="@+id/drawer_roots"
61        android:layout_width="256dp"
62        android:layout_height="match_parent"
63        android:layout_gravity="start"
64        android:orientation="vertical"
65        android:elevation="16dp"
66        android:background="@*android:color/white">
67
68        <Toolbar
69            android:id="@+id/roots_toolbar"
70            android:layout_width="match_parent"
71            android:layout_height="?android:attr/actionBarSize"
72            android:background="?android:attr/colorPrimary"
73            android:elevation="8dp"
74            android:theme="?android:attr/actionBarTheme" />
75
76        <FrameLayout
77            android:id="@+id/container_roots"
78            android:layout_width="match_parent"
79            android:layout_height="0dp"
80            android:layout_weight="1" />
81
82    </LinearLayout>
83
84</android.support.v4.widget.DrawerLayout>
85