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 android:overScrollMode="never" 72 app:behavior_overlapTop="10dp" 73 app:layout_behavior="@string/appbar_scrolling_view_behavior"> 74 75 <LinearLayout 76 android:id="@+id/inspector_container" 77 android:orientation="vertical" 78 android:layout_width="match_parent" 79 android:layout_height="match_parent" 80 android:background="@drawable/bottom_sheet_dialog_background" 81 android:paddingBottom="5dp"> 82 83 <com.android.documentsui.inspector.DetailsView 84 android:id="@+id/inspector_details_view" 85 android:orientation="vertical" 86 android:layout_width="match_parent" 87 android:layout_height="wrap_content"/> 88 89 <com.android.documentsui.inspector.MediaView 90 android:id="@+id/inspector_media_view" 91 android:orientation="vertical" 92 android:layout_width="match_parent" 93 android:layout_height="wrap_content"/> 94 95 <com.android.documentsui.inspector.actions.ActionView 96 android:id="@+id/inspector_show_in_provider_view" 97 android:orientation="vertical" 98 android:layout_width="match_parent" 99 android:layout_height="wrap_content" 100 android:visibility="gone"/> 101 102 <com.android.documentsui.inspector.actions.ActionView 103 android:id="@+id/inspector_app_defaults_view" 104 android:orientation="vertical" 105 android:layout_width="match_parent" 106 android:layout_height="wrap_content" 107 android:visibility="gone"/> 108 109 <com.android.documentsui.inspector.DebugView 110 android:id="@+id/inspector_debug_view" 111 android:orientation="vertical" 112 android:layout_width="match_parent" 113 android:layout_height="wrap_content" 114 android:paddingTop="20dp" 115 android:visibility="gone" /> 116 117 </LinearLayout> 118 </androidx.core.widget.NestedScrollView> 119 120</androidx.coordinatorlayout.widget.CoordinatorLayout> 121