1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17              xmlns:app="http://schemas.android.com/apk/res-auto"
18    android:id="@+id/directory_header"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content"
21    android:layout_marginTop="@dimen/action_bar_space_margin"
22    android:orientation="vertical">
23
24    <com.android.documentsui.HorizontalBreadcrumb
25        android:id="@+id/horizontal_breadcrumb"
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        android:background="?android:attr/colorBackground"/>
29
30    <!-- used for search chip. -->
31    <include layout="@layout/search_chip_row"/>
32
33    <LinearLayout
34        android:id="@+id/tabs_container"
35        android:theme="@style/TabTheme"
36        android:clipToPadding="true"
37        android:clipChildren="true"
38        android:layout_width="match_parent"
39        android:layout_height="match_parent"
40        android:orientation="vertical">
41
42        <com.google.android.material.tabs.TabLayout
43            android:id="@+id/tabs"
44            android:background="@android:color/transparent"
45            android:layout_width="match_parent"
46            android:layout_height="wrap_content"
47            app:tabMaxWidth="0dp"
48            app:tabGravity="fill"
49            app:tabMode="fixed"
50            app:tabIndicatorColor="@color/tab_indicator_color"
51            app:tabSelectedTextColor="@color/tab_indicator_color"
52            app:tabTextAppearance="@style/TabTextAppearance"
53            app:tabTextColor="?android:attr/textColorSecondary"/>
54
55        <View
56            android:layout_width="match_parent"
57            android:layout_height="1dp"
58            android:background="?android:attr/listDivider"/>
59    </LinearLayout>
60
61    <!-- used for apps row. -->
62    <include layout="@layout/apps_row"/>
63
64    <LinearLayout
65        android:layout_width="match_parent"
66        android:layout_height="wrap_content"
67        android:layout_marginStart="@dimen/root_info_header_horizontal_padding"
68        android:layout_marginEnd="@dimen/root_info_header_horizontal_padding"
69        android:minHeight="@dimen/root_info_header_height">
70
71        <TextView
72            android:id="@+id/header_title"
73            android:layout_width="match_parent"
74            android:layout_height="match_parent"
75            android:layout_weight="1"
76            android:textAppearance="@style/SortTitle"
77            android:textAllCaps="true"
78            android:maxLines="1"
79            android:ellipsize="end"
80            android:gravity="start|center_vertical"/>
81
82        <androidx.appcompat.widget.ActionMenuView
83            android:id="@+id/sub_menu"
84            android:layout_width="wrap_content"
85            android:layout_height="wrap_content"
86            android:layout_gravity="end|center_vertical"/>
87
88    </LinearLayout>
89
90    <!-- column headers are empty on small screens, in portrait or in grid mode. -->
91    <include layout="@layout/column_headers"/>
92
93</LinearLayout>