chooser_grid.xml revision 7d7580019e44e2e162df01ffff51de20ed0721b3
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:maxWidth="@dimen/resolver_max_width" 24 android:maxCollapsedHeight="288dp" 25 android:maxCollapsedHeightSmall="56dp" 26 android:id="@id/contentPanel"> 27 28 <LinearLayout 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 <ImageView android:id="@+id/title_icon" 36 android:layout_width="24dp" 37 android:layout_height="24dp" 38 android:layout_gravity="start|center_vertical" 39 android:layout_marginEnd="16dp" 40 android:visibility="gone" 41 android:scaleType="fitCenter" /> 42 <TextView android:id="@+id/title" 43 android:layout_width="0dp" 44 android:layout_height="wrap_content" 45 android:layout_weight="1" 46 android:textAppearance="?attr/textAppearanceMedium" 47 android:textSize="14sp" 48 android:gravity="start|center_vertical" 49 android:paddingEnd="?attr/dialogPreferredPadding" 50 android:paddingTop="12dp" 51 android:paddingBottom="12dp" /> 52 <LinearLayout android:id="@+id/profile_button" 53 android:layout_width="wrap_content" 54 android:layout_height="48dp" 55 android:layout_marginTop="4dp" 56 android:layout_marginEnd="4dp" 57 android:paddingStart="8dp" 58 android:paddingEnd="8dp" 59 android:paddingTop="4dp" 60 android:paddingBottom="4dp" 61 android:focusable="true" 62 android:visibility="gone" 63 style="?attr/borderlessButtonStyle"> 64 <ImageView android:id="@+id/icon" 65 android:layout_width="24dp" 66 android:layout_height="24dp" 67 android:layout_gravity="start|center_vertical" 68 android:layout_marginStart="4dp" 69 android:layout_marginEnd="16dp" 70 android:layout_marginTop="12dp" 71 android:layout_marginBottom="12dp" 72 android:scaleType="fitCenter" /> 73 <TextView android:id="@id/text1" 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:layout_gravity="start|center_vertical" 77 android:layout_marginEnd="16dp" 78 android:textAppearance="?attr/textAppearanceButton" 79 android:textColor="?attr/textColorPrimary" 80 android:minLines="1" 81 android:maxLines="1" 82 android:ellipsize="marquee" /> 83 </LinearLayout> 84 </LinearLayout> 85 86 <ListView 87 android:layout_width="match_parent" 88 android:layout_height="wrap_content" 89 android:id="@+id/resolver_list" 90 android:clipToPadding="false" 91 android:scrollbarStyle="outsideOverlay" 92 android:background="@color/white" 93 android:elevation="8dp" 94 android:listSelector="@color/transparent" 95 android:divider="@null" 96 android:scrollIndicators="top" 97 android:nestedScrollingEnabled="true" /> 98 99 <TextView android:id="@+id/empty" 100 android:layout_width="match_parent" 101 android:layout_height="wrap_content" 102 android:layout_alwaysShow="true" 103 android:background="@color/white" 104 android:text="@string/noApplications" 105 android:padding="32dp" 106 android:gravity="center" 107 android:visibility="gone" /> 108 109</com.android.internal.widget.ResolverDrawerLayout> 110