1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4** Copyright 2006, 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 21 android:id="@androidprv:id/item" 22 android:orientation="vertical" 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:minHeight="100dp" 26 android:gravity="center" 27 android:paddingTop="24dp" 28 android:paddingBottom="12dp" 29 android:paddingLeft="12dp" 30 android:paddingRight="12dp" 31 android:focusable="true" 32 android:background="?android:attr/selectableItemBackgroundBorderless"> 33 34 <ImageView android:id="@android:id/icon" 35 android:layout_width="@dimen/chooser_icon_size" 36 android:layout_height="@dimen/chooser_icon_size" 37 android:scaleType="fitCenter" /> 38 39 <!-- Size manually tuned to match specs --> 40 <Space android:layout_width="1dp" 41 android:layout_height="7dp"/> 42 43 <!-- App name or Direct Share target name, DS set to 2 lines --> 44 <TextView android:id="@android:id/text1" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:textAppearance="?android:attr/textAppearanceSmall" 48 android:textColor="?android:attr/textColorPrimary" 49 android:textSize="12sp" 50 android:gravity="top|center_horizontal" 51 android:lines="1" 52 android:ellipsize="end" /> 53 54 <!-- Activity name if set, gone for Direct Share targets --> 55 <TextView android:id="@android:id/text2" 56 android:textAppearance="?android:attr/textAppearanceSmall" 57 android:textSize="12sp" 58 android:textColor="?android:attr/textColorSecondary" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:lines="1" 62 android:gravity="top|center_horizontal" 63 android:ellipsize="end"/> 64 65</LinearLayout> 66 67