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