blob: 4116df61459ed8d0b5787b5be3d7877c24acbb3b [file] [log] [blame]
Steve McKay0fbfc652015-08-20 16:48:49 -07001<?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
Ben Kwac4693342015-09-30 10:00:10 -070017<!-- CoordinatorLayout is necessary for various components (e.g. Snackbars, and
18 floating action buttons) to operate correctly. -->
KOUSHIK PANUGANTI6ca7acc2018-04-17 16:00:10 -070019<androidx.coordinatorlayout.widget.CoordinatorLayout
Ben Kwac4693342015-09-30 10:00:10 -070020 xmlns:android="http://schemas.android.com/apk/res/android"
Tony Huang52e25b52019-04-30 18:14:36 +080021 xmlns:app="http://schemas.android.com/apk/res-auto"
Steve McKay0fbfc652015-08-20 16:48:49 -070022 android:layout_width="match_parent"
23 android:layout_height="match_parent"
Ben Kwa74e5d412016-02-10 07:46:35 -080024 android:id="@+id/coordinator_layout"
Jon Mannca2de662017-05-26 16:18:03 -070025 android:focusable="true">
Steve McKay0fbfc652015-08-20 16:48:49 -070026
Ben Kwaf4b0ff62016-02-02 12:11:10 -080027 <LinearLayout
Steve McKay0fbfc652015-08-20 16:48:49 -070028 android:layout_width="match_parent"
Ben Kwac4693342015-09-30 10:00:10 -070029 android:layout_height="match_parent"
30 android:orientation="vertical">
Steve McKay0fbfc652015-08-20 16:48:49 -070031
Tony Huang8d8d92f2018-09-13 14:41:16 +080032 <androidx.appcompat.widget.Toolbar
Ben Kwac4693342015-09-30 10:00:10 -070033 android:id="@+id/toolbar"
34 android:layout_width="match_parent"
35 android:layout_height="?android:attr/actionBarSize"
Tony Huang7cbde882018-11-23 12:14:34 +080036 android:layout_margin="@dimen/search_bar_margin"
Tony Huangeb43e962018-12-19 15:45:36 +080037 android:background="?android:attr/colorBackground"
Tony Huang7cbde882018-11-23 12:14:34 +080038 android:elevation="3dp"
Ben Kwac4693342015-09-30 10:00:10 -070039 android:theme="?actionBarTheme"
Tony Huang52e25b52019-04-30 18:14:36 +080040 android:popupTheme="?actionBarPopupTheme"
41 app:titleTextAppearance="@style/ToolbarTitle">
Ben Kwac4693342015-09-30 10:00:10 -070042
Tony Huang7cbde882018-11-23 12:14:34 +080043 <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
Ben Linb8c54e72016-06-10 12:13:27 -070056 <com.android.documentsui.HorizontalBreadcrumb
Steve McKay85ec0d62016-06-24 15:05:08 -070057 android:id="@+id/horizontal_breadcrumb"
Ben Linba1cb3d2016-06-20 17:08:22 -070058 android:layout_marginRight="20dp"
Ben Linb8c54e72016-06-10 12:13:27 -070059 android:layout_width="match_parent"
Tony Huangf6bf0052019-08-07 18:06:50 +080060 android:layout_height="wrap_content" />
Ben Kwac4693342015-09-30 10:00:10 -070061
Tony Huang8d8d92f2018-09-13 14:41:16 +080062 </androidx.appcompat.widget.Toolbar>
Ben Kwac4693342015-09-30 10:00:10 -070063
64 <LinearLayout
65 android:layout_width="match_parent"
66 android:layout_height="0dp"
67 android:layout_weight="1"
68 android:orientation="horizontal"
Ben Kwa65d7c042015-11-10 21:02:47 -080069 android:baselineAligned="false">
Ben Kwac4693342015-09-30 10:00:10 -070070
71 <FrameLayout
72 android:id="@+id/container_roots"
73 android:layout_width="256dp"
74 android:layout_height="match_parent" />
75
Tony Huang0f7e8362018-11-23 12:14:34 +080076 <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
Tony Huangf7b05c42019-05-02 16:51:01 +080091 <androidx.coordinatorlayout.widget.CoordinatorLayout
Tony Huang0f7e8362018-11-23 12:14:34 +080092 android:id="@+id/container_save"
93 android:layout_width="match_parent"
94 android:layout_height="wrap_content"
Tony Huangf7b05c42019-05-02 16:51:01 +080095 android:background="?android:attr/colorBackgroundFloating"
Tony Huang0f7e8362018-11-23 12:14:34 +080096 android:elevation="8dp" />
97
98 </LinearLayout>
Ben Kwac4693342015-09-30 10:00:10 -070099
100 </LinearLayout>
Steve McKay0fbfc652015-08-20 16:48:49 -0700101
102 </LinearLayout>
103
KOUSHIK PANUGANTI6ca7acc2018-04-17 16:00:10 -0700104</androidx.coordinatorlayout.widget.CoordinatorLayout>