• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:orientation="vertical">
40
41        <com.google.android.material.tabs.TabLayout
42            android:id="@+id/tabs"
43            android:background="@android:color/transparent"
44            android:layout_width="match_parent"
45            android:layout_height="wrap_content"
46            app:tabMaxWidth="0dp"
47            app:tabGravity="fill"
48            app:tabMode="fixed"
49            app:tabIndicatorColor="?android:attr/colorAccent"
50            app:tabSelectedTextColor="?android:attr/colorAccent"
51            app:tabTextAppearance="@style/TabTextAppearance"
52            app:tabTextColor="?android:attr/textColorSecondary"/>
53
54        <View
55            android:layout_width="match_parent"
56            android:layout_height="1dp"
57            android:background="?android:attr/listDivider"/>
58    </LinearLayout>
59
60    <!-- used for apps row. -->
61    <include layout="@layout/apps_row"/>
62
63    <LinearLayout
64        android:layout_width="match_parent"
65        android:layout_height="wrap_content"
66        android:layout_marginStart="@dimen/root_info_header_horizontal_padding"
67        android:layout_marginEnd="@dimen/root_info_header_horizontal_padding"
68        android:minHeight="@dimen/root_info_header_height">
69
70        <TextView
71            android:id="@+id/header_title"
72            android:layout_width="match_parent"
73            android:layout_height="match_parent"
74            android:layout_weight="1"
75            android:textAppearance="@style/SectionHeader"
76            android:maxLines="1"
77            android:ellipsize="end"
78            android:gravity="start|center_vertical"/>
79
80        <androidx.appcompat.widget.ActionMenuView
81            android:id="@+id/sub_menu"
82            android:layout_width="wrap_content"
83            android:layout_height="wrap_content"
84            android:layout_gravity="end|center_vertical"/>
85
86    </LinearLayout>
87
88    <!-- column headers are empty on small screens, in portrait or in grid mode. -->
89    <include layout="@layout/column_headers"/>
90
91</LinearLayout>