• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3    Copyright (C) 2017 The Android Open Source Project
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9         http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16-->
17<androidx.coordinatorlayout.widget.CoordinatorLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/inspector_root"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent">
23
24    <com.google.android.material.appbar.AppBarLayout
25        android:id="@+id/app_bar"
26        android:layout_width="match_parent"
27        android:layout_height="wrap_content"
28        android:background="?android:colorBackground">
29
30        <com.google.android.material.appbar.CollapsingToolbarLayout
31            android:layout_width="match_parent"
32            android:layout_height="wrap_content"
33            android:minHeight="?android:attr/actionBarSize"
34            app:titleEnabled="false"
35            app:statusBarScrim="@android:color/transparent"
36            app:layout_scrollFlags="scroll|exitUntilCollapsed">
37
38            <LinearLayout
39                android:layout_width="match_parent"
40                android:layout_height="wrap_content"
41                android:orientation="vertical">
42
43                <android.widget.Space
44                    android:layout_width="match_parent"
45                    android:layout_height="?android:attr/actionBarSize"/>
46
47                <com.android.documentsui.inspector.HeaderView
48                    android:id="@+id/inspector_header_view"
49                    android:layout_width="match_parent"
50                    android:layout_height="@dimen/inspector_header_height"
51                    app:layout_collapseMode="parallax"/>
52            </LinearLayout>
53
54            <androidx.appcompat.widget.Toolbar
55                android:id="@+id/toolbar"
56                android:layout_width="match_parent"
57                android:layout_height="?android:attr/actionBarSize"
58                android:background="?android:attr/colorBackground"
59                android:theme="?actionBarTheme"
60                app:title="@string/inspector_title"
61                app:titleTextAppearance="@style/ToolbarTitle"
62                app:layout_collapseMode="pin">
63            </androidx.appcompat.widget.Toolbar>
64        </com.google.android.material.appbar.CollapsingToolbarLayout>
65    </com.google.android.material.appbar.AppBarLayout>
66
67    <androidx.core.widget.NestedScrollView
68        android:orientation="vertical"
69        android:layout_width="match_parent"
70        android:layout_height="match_parent"
71        app:behavior_overlapTop="10dp"
72        app:layout_behavior="@string/appbar_scrolling_view_behavior">
73
74        <LinearLayout
75            android:id="@+id/inspector_container"
76            android:orientation="vertical"
77            android:layout_width="match_parent"
78            android:layout_height="match_parent"
79            android:background="@drawable/bottom_sheet_dialog_background"
80            android:paddingBottom="5dp">
81
82            <com.android.documentsui.inspector.DetailsView
83                android:id="@+id/inspector_details_view"
84                android:orientation="vertical"
85                android:layout_width="match_parent"
86                android:layout_height="wrap_content"/>
87
88            <com.android.documentsui.inspector.MediaView
89                android:id="@+id/inspector_media_view"
90                android:orientation="vertical"
91                android:layout_width="match_parent"
92                android:layout_height="wrap_content"/>
93
94            <com.android.documentsui.inspector.actions.ActionView
95                android:id="@+id/inspector_show_in_provider_view"
96                android:orientation="vertical"
97                android:layout_width="match_parent"
98                android:layout_height="wrap_content"
99                android:visibility="gone"/>
100
101            <com.android.documentsui.inspector.actions.ActionView
102                android:id="@+id/inspector_app_defaults_view"
103                android:orientation="vertical"
104                android:layout_width="match_parent"
105                android:layout_height="wrap_content"
106                android:visibility="gone"/>
107
108            <com.android.documentsui.inspector.DebugView
109                android:id="@+id/inspector_debug_view"
110                android:orientation="vertical"
111                android:layout_width="match_parent"
112                android:layout_height="wrap_content"
113                android:paddingTop="20dp"
114                android:visibility="gone" />
115
116        </LinearLayout>
117    </androidx.core.widget.NestedScrollView>
118
119</androidx.coordinatorlayout.widget.CoordinatorLayout>
120