OSDN Git Service

DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
[android-x86/frameworks-base.git] / core / res / res / layout / chooser_grid.xml
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     <RelativeLayout
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                    />
58         <TextView android:id="@+id/title"
59                   android:layout_height="wrap_content"
60                   android:layout_width="wrap_content"
61                   android:textAppearance="?attr/textAppearanceMedium"
62                   android:textSize="14sp"
63                   android:gravity="start|center_vertical"
64                   android:paddingEnd="?attr/dialogPreferredPadding"
65                   android:paddingTop="12dp"
66                   android:paddingBottom="12dp"
67                   android:layout_below="@id/profile_button"
68                   android:layout_toRightOf="@id/title_icon"/>
69     </RelativeLayout>
70
71     <ListView
72             android:layout_width="match_parent"
73             android:layout_height="match_parent"
74             android:id="@+id/resolver_list"
75             android:clipToPadding="false"
76             android:scrollbarStyle="outsideOverlay"
77             android:background="@color/white"
78             android:elevation="8dp"
79             android:listSelector="@color/transparent"
80             android:divider="@null"
81             android:scrollIndicators="top"
82             android:nestedScrollingEnabled="true" />
83
84     <TextView android:id="@+id/empty"
85               android:layout_width="match_parent"
86               android:layout_height="wrap_content"
87               android:layout_alwaysShow="true"
88               android:background="@color/white"
89               android:text="@string/noApplications"
90               android:padding="32dp"
91               android:gravity="center"
92               android:visibility="gone" />
93
94 </com.android.internal.widget.ResolverDrawerLayout>