1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 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<com.android.internal.widget.ResolverDrawerLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:layout_gravity="center" 23 androidprv:maxCollapsedHeight="10000dp" 24 androidprv:maxCollapsedHeightSmall="56dp" 25 androidprv:maxWidth="@*android:dimen/chooser_width" 26 android:id="@*android:id/contentPanel"> 27 <!-- maxCollapsedHeight above is huge, to make sure the layout is always expanded. --> 28 29 <LinearLayout 30 android:id="@*android:id/chooser_header" 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:orientation="vertical" 34 androidprv:layout_alwaysShow="true" 35 android:gravity="center" 36 android:elevation="0dp" 37 android:background="@*android:drawable/bottomsheet_background"> 38 39 <ImageView 40 android:layout_width="@dimen/media_projection_app_selector_icon_size" 41 android:layout_height="@dimen/media_projection_app_selector_icon_size" 42 android:layout_marginTop="@*android:dimen/chooser_edge_margin_normal" 43 android:layout_marginBottom="@*android:dimen/chooser_edge_margin_normal" 44 android:importantForAccessibility="no" 45 android:tint="?android:attr/textColorPrimary" 46 android:src="@drawable/ic_present_to_all" 47 /> 48 49 <TextView android:id="@*android:id/title" 50 android:layout_height="wrap_content" 51 android:layout_width="wrap_content" 52 android:textAppearance="?android:attr/textAppearanceLarge" 53 android:focusable="false" 54 android:clickable="false" 55 android:gravity="center" 56 android:paddingBottom="@*android:dimen/chooser_view_spacing" 57 android:paddingLeft="24dp" 58 android:paddingRight="24dp"/> 59 </LinearLayout> 60 61 <FrameLayout 62 android:id="@*android:id/content_preview_container" 63 android:layout_width="match_parent" 64 android:layout_height="wrap_content" 65 android:visibility="gone" /> 66 67 <TabHost 68 android:id="@*android:id/profile_tabhost" 69 android:layout_width="match_parent" 70 android:layout_height="wrap_content" 71 android:layout_alignParentTop="true" 72 android:layout_centerHorizontal="true" 73 android:background="?android:attr/colorBackground"> 74 <LinearLayout 75 android:orientation="vertical" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content"> 78 <TabWidget 79 android:id="@*android:id/tabs" 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:visibility="gone"> 83 </TabWidget> 84 <FrameLayout 85 android:id="@*android:id/tabcontent" 86 android:layout_width="match_parent" 87 android:layout_height="wrap_content"> 88 <com.android.internal.app.ResolverViewPager 89 android:id="@*android:id/profile_pager" 90 android:layout_width="match_parent" 91 android:layout_height="wrap_content"/> 92 </FrameLayout> 93 </LinearLayout> 94 </TabHost> 95 96</com.android.internal.widget.ResolverDrawerLayout> 97