1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4* Copyright 2015, The Android Open Source Project 5* 6* Licensed under the Apache License, Version 2.0 (the "License"); 7* you may not use this file except in compliance with the License. 8* You may obtain a copy of the License at 9* 10* http://www.apache.org/licenses/LICENSE-2.0 11* 12* Unless required by applicable law or agreed to in writing, software 13* distributed under the License is distributed on an "AS IS" BASIS, 14* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15* See the License for the specific language governing permissions and 16* limitations under the License. 17*/ 18--> 19<com.android.intentresolver.widget.ResolverDrawerLayout 20 xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 22 xmlns:app="http://schemas.android.com/apk/res-auto" 23 android:layout_width="match_parent" 24 android:layout_height="match_parent" 25 android:layout_gravity="center" 26 app:maxCollapsedHeight="0dp" 27 app:maxCollapsedHeightSmall="56dp" 28 android:maxWidth="@dimen/chooser_width" 29 android:id="@androidprv:id/contentPanel"> 30 31 <RelativeLayout 32 android:id="@androidprv:id/chooser_header" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 app:layout_alwaysShow="true" 36 android:elevation="0dp" 37 android:background="@drawable/bottomsheet_background"> 38 39 <View 40 android:id="@androidprv:id/drag" 41 android:layout_width="64dp" 42 android:layout_height="4dp" 43 android:background="@drawable/ic_drag_handle" 44 android:layout_marginTop="@dimen/chooser_edge_margin_thin" 45 android:layout_marginBottom="@dimen/chooser_edge_margin_thin" 46 android:layout_centerHorizontal="true" 47 android:layout_alignParentTop="true" /> 48 49 <TextView android:id="@android:id/title" 50 android:layout_height="wrap_content" 51 android:layout_width="wrap_content" 52 android:textAppearance="@android:style/TextAppearance.DeviceDefault.WindowTitle" 53 android:gravity="center" 54 android:paddingBottom="@dimen/chooser_view_spacing" 55 android:paddingLeft="24dp" 56 android:paddingRight="24dp" 57 android:visibility="gone" 58 android:layout_below="@androidprv:id/drag" 59 android:layout_centerHorizontal="true"/> 60 </RelativeLayout> 61 62 <FrameLayout 63 android:id="@androidprv: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="@androidprv: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="?androidprv:attr/materialColorSurfaceContainer"> 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.intentresolver.ResolverViewPager 90 android:id="@androidprv: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.intentresolver.widget.ResolverDrawerLayout> 98