1 <?xml version="1.0" encoding="utf-8"?>
4 * Copyright 2015, The Android Open Source Project
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
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:maxWidth="@dimen/resolver_max_width"
24 android:maxCollapsedHeight="288dp"
25 android:maxCollapsedHeightSmall="56dp"
26 android:id="@id/contentPanel">
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:layout_alwaysShow="true"
32 android:elevation="8dp"
33 android:paddingStart="16dp"
34 android:background="@color/white" >
35 <TextView android:id="@+id/profile_button"
36 android:layout_width="wrap_content"
37 android:layout_height="48dp"
38 android:layout_marginEnd="8dp"
39 android:paddingStart="8dp"
40 android:paddingEnd="8dp"
41 android:visibility="gone"
42 style="?attr/borderlessButtonStyle"
43 android:textAppearance="?attr/textAppearanceButton"
44 android:textColor="?attr/colorAccent"
45 android:gravity="center_vertical"
46 android:layout_alignParentTop="true"
47 android:layout_alignParentRight="true"
48 android:singleLine="true"/>
49 <ImageView android:id="@+id/title_icon"
50 android:layout_width="24dp"
51 android:layout_height="24dp"
52 android:layout_marginEnd="16dp"
53 android:visibility="gone"
54 android:scaleType="fitCenter"
55 android:layout_below="@id/profile_button"
56 android:layout_alignParentLeft="true"/>
57 <TextView android:id="@+id/title"
58 android:layout_height="wrap_content"
59 android:layout_width="wrap_content"
60 android:textAppearance="?attr/textAppearanceMedium"
61 android:textSize="14sp"
62 android:gravity="start|center_vertical"
63 android:paddingEnd="?attr/dialogPreferredPadding"
64 android:paddingTop="12dp"
65 android:paddingBottom="12dp"
66 android:layout_below="@id/profile_button"
67 android:layout_toRightOf="@id/title_icon"/>
71 android:layout_width="match_parent"
72 android:layout_height="match_parent"
73 android:id="@+id/resolver_list"
74 android:clipToPadding="false"
75 android:scrollbarStyle="outsideOverlay"
76 android:background="@color/white"
77 android:elevation="8dp"
78 android:listSelector="@color/transparent"
79 android:divider="@null"
80 android:scrollIndicators="top"
81 android:nestedScrollingEnabled="true" />
83 <TextView android:id="@+id/empty"
84 android:layout_width="match_parent"
85 android:layout_height="wrap_content"
86 android:layout_alwaysShow="true"
87 android:background="@color/white"
88 android:text="@string/noApplications"
89 android:padding="32dp"
90 android:gravity="center"
91 android:visibility="gone" />
93 </com.android.internal.widget.ResolverDrawerLayout>