• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:titleTextAppearance="@style/ToolbarTitle">
42
43            <TextView
44                android:id="@+id/searchbar_title"
45                android:layout_width="match_parent"
46                android:layout_height="?android:attr/actionBarSize"
47                android:layout_marginStart="@dimen/search_bar_text_margin_start"
48                android:layout_marginEnd="@dimen/search_bar_text_margin_end"
49                android:paddingStart="@dimen/search_bar_icon_padding"
50                android:gravity="center_vertical"
51                android:text="@string/search_bar_hint"
52                android:textAppearance="@style/SearchBarTitle"
53                android:drawableStart="@drawable/ic_menu_search"
54                android:drawablePadding="@dimen/search_bar_icon_padding"/>
55
56            <com.android.documentsui.HorizontalBreadcrumb
57                android:id="@+id/horizontal_breadcrumb"
58                android:layout_marginRight="20dp"
59                android:layout_width="match_parent"
60                android:layout_height="match_parent" />
61
62        </androidx.appcompat.widget.Toolbar>
63
64        <LinearLayout
65            android:layout_width="match_parent"
66            android:layout_height="0dp"
67            android:layout_weight="1"
68            android:orientation="horizontal"
69            android:baselineAligned="false">
70
71            <FrameLayout
72                android:id="@+id/container_roots"
73                android:layout_width="256dp"
74                android:layout_height="match_parent" />
75
76            <LinearLayout
77                android:layout_width="match_parent"
78                android:layout_height="match_parent"
79                android:orientation="vertical"
80                android:elevation="8dp">
81
82                <include layout="@layout/directory_header" />
83
84                <FrameLayout
85                    android:id="@+id/container_directory"
86                    android:clipToPadding="false"
87                    android:layout_width="match_parent"
88                    android:layout_height="0dp"
89                    android:layout_weight="1" />
90
91                <androidx.coordinatorlayout.widget.CoordinatorLayout
92                    android:id="@+id/container_save"
93                    android:layout_width="match_parent"
94                    android:layout_height="wrap_content"
95                    android:background="?android:attr/colorBackgroundFloating"
96                    android:elevation="8dp" />
97
98            </LinearLayout>
99
100        </LinearLayout>
101
102    </LinearLayout>
103
104</androidx.coordinatorlayout.widget.CoordinatorLayout>
105