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:id="@+id/media_projection_app_selector_icon" 41 android:layout_width="@dimen/media_projection_app_selector_icon_size" 42 android:layout_height="@dimen/media_projection_app_selector_icon_size" 43 android:layout_marginTop="@*android:dimen/chooser_edge_margin_normal" 44 android:layout_marginBottom="@*android:dimen/chooser_edge_margin_normal" 45 android:importantForAccessibility="no" 46 android:tint="?android:attr/textColorPrimary" 47 android:src="@drawable/ic_present_to_all" 48 /> 49 50 <TextView android:id="@*android:id/title" 51 android:layout_height="wrap_content" 52 android:layout_width="wrap_content" 53 android:textAppearance="?android:attr/textAppearanceLarge" 54 android:focusable="false" 55 android:clickable="false" 56 android:gravity="center" 57 android:paddingBottom="@*android:dimen/chooser_view_spacing" 58 android:paddingLeft="24dp" 59 android:paddingRight="24dp"/> 60 </LinearLayout> 61 62 <FrameLayout 63 android:id="@*android:id/content_preview_container" 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:visibility="gone" /> 67 68 <TabHost 69 android:id="@*android:id/profile_tabhost" 70 android:layout_width="match_parent" 71 android:layout_height="wrap_content" 72 android:layout_alignParentTop="true" 73 android:layout_centerHorizontal="true" 74 android:background="?android:attr/colorBackground"> 75 <LinearLayout 76 android:orientation="vertical" 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content"> 79 <TabWidget 80 android:id="@*android:id/tabs" 81 android:layout_width="match_parent" 82 android:layout_height="wrap_content" 83 android:visibility="gone"> 84 </TabWidget> 85 <FrameLayout 86 android:id="@*android:id/tabcontent" 87 android:layout_width="match_parent" 88 android:layout_height="wrap_content"> 89 <com.android.internal.app.ResolverViewPager 90 android:id="@*android:id/profile_pager" 91 android:layout_width="match_parent" 92 android:layout_height="wrap_content"/> 93 </FrameLayout> 94 </LinearLayout> 95 </TabHost> 96 97</com.android.internal.widget.ResolverDrawerLayout> 98