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    app:useScrollablePreviewNestedFlingLogic="true"
29    android:maxWidth="@dimen/chooser_width"
30    android:id="@androidprv:id/contentPanel">
31
32    <RelativeLayout
33        android:id="@androidprv:id/chooser_header"
34        android:layout_width="match_parent"
35        android:layout_height="wrap_content"
36        app:layout_alwaysShow="true"
37        android:elevation="0dp"
38        android:background="@drawable/bottomsheet_background">
39
40        <View
41            android:id="@androidprv:id/drag"
42            android:layout_width="64dp"
43            android:layout_height="4dp"
44            android:background="@drawable/ic_drag_handle"
45            android:layout_marginTop="@dimen/chooser_edge_margin_thin"
46            android:layout_marginBottom="@dimen/chooser_edge_margin_thin"
47            android:layout_centerHorizontal="true"
48            android:layout_alignParentTop="true" />
49
50        <TextView android:id="@android:id/title"
51                  android:layout_height="wrap_content"
52                  android:layout_width="wrap_content"
53                  android:textAppearance="@android:style/TextAppearance.DeviceDefault.WindowTitle"
54                  android:gravity="center"
55                  android:paddingBottom="@dimen/chooser_view_spacing"
56                  android:paddingLeft="24dp"
57                  android:paddingRight="24dp"
58                  android:visibility="gone"
59                  android:layout_below="@androidprv:id/drag"
60                  android:layout_centerHorizontal="true"/>
61    </RelativeLayout>
62
63    <FrameLayout
64        android:id="@+id/chooser_headline_row_container"
65        android:layout_width="match_parent"
66        android:layout_height="wrap_content"
67        app:layout_alwaysShow="true"
68        android:background="@androidprv:color/materialColorSurfaceContainer">
69
70        <ViewStub
71            android:id="@+id/chooser_headline_row_stub"
72            android:inflatedId="@+id/chooser_headline_row"
73            android:layout="@layout/chooser_headline_row"
74            android:layout_width="match_parent"
75            android:layout_height="wrap_content"
76            android:paddingHorizontal="@dimen/chooser_edge_margin_normal"
77            android:layout_marginBottom="@dimen/chooser_view_spacing" />
78    </FrameLayout>
79
80    <com.android.intentresolver.widget.ChooserNestedScrollView
81        android:id="@+id/chooser_scrollable_container"
82        android:layout_width="match_parent"
83        android:layout_height="wrap_content">
84
85        <LinearLayout
86            android:layout_width="match_parent"
87            android:layout_height="wrap_content"
88            android:orientation="vertical">
89
90            <FrameLayout
91                android:id="@androidprv:id/content_preview_container"
92                android:layout_width="match_parent"
93                android:layout_height="wrap_content"
94                android:visibility="gone" />
95
96            <TabHost
97                android:id="@androidprv:id/profile_tabhost"
98                android:layout_width="match_parent"
99                android:layout_height="wrap_content"
100                android:layout_alignParentTop="true"
101                android:layout_centerHorizontal="true"
102                android:background="@androidprv:color/materialColorSurfaceContainer">
103                <LinearLayout
104                    android:orientation="vertical"
105                    android:layout_width="match_parent"
106                    android:layout_height="wrap_content">
107                    <TabWidget
108                        android:id="@android:id/tabs"
109                        android:layout_width="match_parent"
110                        android:layout_height="wrap_content"
111                        android:visibility="gone">
112                    </TabWidget>
113                    <FrameLayout
114                        android:id="@android:id/tabcontent"
115                        android:layout_width="match_parent"
116                        android:layout_height="wrap_content">
117                        <com.android.intentresolver.ResolverViewPager
118                            android:id="@androidprv:id/profile_pager"
119                            android:layout_width="match_parent"
120                            android:layout_height="wrap_content"/>
121                    </FrameLayout>
122                </LinearLayout>
123            </TabHost>
124    </LinearLayout>
125
126    </com.android.intentresolver.widget.ChooserNestedScrollView>
127
128</com.android.intentresolver.widget.ResolverDrawerLayout>
129