blob: 50e6f33f628a48169c8332c35acec027c708a3d1 [file] [log] [blame]
Gurpreet Singh71387882023-01-09 19:07:43 +00001<?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 android:orientation="vertical"
21 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
23 android:minHeight="100dp"
24 android:gravity="center"
25 android:paddingTop="24dp"
26 android:paddingBottom="12dp"
27 android:paddingLeft="12dp"
28 android:paddingRight="12dp"
29 android:focusable="true"
30 android:background="?attr/selectableItemBackgroundBorderless">
31
32 <ImageView android:id="@+id/icon"
33 android:layout_width="@dimen/chooser_icon_size"
34 android:layout_height="@dimen/chooser_icon_size"
35 android:scaleType="fitCenter" />
36
37 <!-- Size manually tuned to match specs -->
38 <Space android:layout_width="1dp"
39 android:layout_height="7dp"/>
40
41 <!-- App name or Direct Share target name, DS set to 2 lines -->
42 <TextView android:id="@android:id/text1"
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:textAppearance="?attr/textAppearanceSmall"
46 android:textColor="?attr/textColorPrimary"
47 android:textSize="12sp"
48 android:gravity="top|center_horizontal"
49 android:lines="1"
50 android:ellipsize="end" />
51
52 <!-- Activity name if set, gone for Direct Share targets -->
53 <TextView android:id="@android:id/text2"
54 android:textAppearance="?android:attr/textAppearanceSmall"
55 android:textSize="12sp"
56 android:textColor="?attr/textColorSecondary"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:lines="1"
60 android:gravity="top|center_horizontal"
61 android:ellipsize="end"/>
62
63</LinearLayout>
64