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.internal.widget.ResolverDrawerLayout
20    xmlns:android="http://schemas.android.com/apk/res/android"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    android:layout_gravity="center"
24    android:maxCollapsedHeight="0dp"
25    android:maxCollapsedHeightSmall="56dp"
26    android:maxWidth="@dimen/chooser_width"
27    android:id="@id/contentPanel">
28
29    <RelativeLayout
30        android:id="@+id/chooser_header"
31        android:layout_width="match_parent"
32        android:layout_height="wrap_content"
33        android:layout_alwaysShow="true"
34        android:elevation="0dp"
35        android:background="@drawable/bottomsheet_background">
36
37        <ImageView
38            android:id="@+id/drag"
39            android:layout_width="24dp"
40            android:layout_height="4dp"
41            android:src="@drawable/ic_drag_handle"
42            android:layout_marginTop="@dimen/chooser_edge_margin_thin"
43            android:layout_marginBottom="@dimen/chooser_edge_margin_thin"
44            android:tint="?attr/colorSurfaceVariant"
45            android:layout_centerHorizontal="true"
46            android:layout_alignParentTop="true" />
47
48        <TextView android:id="@+id/title"
49                  android:layout_height="wrap_content"
50                  android:layout_width="wrap_content"
51                  android:textAppearance="@style/TextAppearance.DeviceDefault.WindowTitle"
52                  android:gravity="center"
53                  android:paddingBottom="@dimen/chooser_view_spacing"
54                  android:paddingLeft="24dp"
55                  android:paddingRight="24dp"
56                  android:visibility="gone"
57                  android:layout_below="@id/drag"
58                  android:layout_centerHorizontal="true"/>
59    </RelativeLayout>
60
61    <FrameLayout
62        android:id="@+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="@+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="?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="@+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