• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        <ImageView
40            android:id="@androidprv:id/drag"
41            android:layout_width="24dp"
42            android:layout_height="4dp"
43            android:src="@drawable/ic_drag_handle"
44            android:layout_marginTop="@dimen/chooser_edge_margin_thin"
45            android:layout_marginBottom="@dimen/chooser_edge_margin_thin"
46            android:tint="?androidprv:attr/colorSurfaceVariant"
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="@androidprv:id/content_preview_container"
65        android:layout_width="match_parent"
66        android:layout_height="wrap_content"
67        android:visibility="gone" />
68
69    <TabHost
70        android:id="@androidprv:id/profile_tabhost"
71        android:layout_width="match_parent"
72        android:layout_height="wrap_content"
73        android:layout_alignParentTop="true"
74        android:layout_centerHorizontal="true"
75        android:background="?android:attr/colorBackground">
76        <LinearLayout
77            android:orientation="vertical"
78            android:layout_width="match_parent"
79            android:layout_height="wrap_content">
80            <TabWidget
81                android:id="@android:id/tabs"
82                android:layout_width="match_parent"
83                android:layout_height="wrap_content"
84                android:visibility="gone">
85            </TabWidget>
86            <FrameLayout
87                android:id="@android:id/tabcontent"
88                android:layout_width="match_parent"
89                android:layout_height="wrap_content">
90                <com.android.intentresolver.ResolverViewPager
91                    android:id="@androidprv:id/profile_pager"
92                    android:layout_width="match_parent"
93                    android:layout_height="wrap_content"/>
94            </FrameLayout>
95        </LinearLayout>
96    </TabHost>
97
98</com.android.intentresolver.widget.ResolverDrawerLayout>
99