1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* //device/apps/common/res/any/layout/resolve_list_item.xml 4** 5** Copyright 2006, The Android Open Source Project 6** 7** Licensed under the Apache License, Version 2.0 (the "License"); 8** you may not use this file except in compliance with the License. 9** You may obtain a copy of the License at 10** 11** http://www.apache.org/licenses/LICENSE-2.0 12** 13** Unless required by applicable law or agreed to in writing, software 14** distributed under the License is distributed on an "AS IS" BASIS, 15** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16** See the License for the specific language governing permissions and 17** limitations under the License. 18*/ 19--> 20<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 android:orientation="horizontal" 22 android:layout_height="wrap_content" 23 android:layout_width="match_parent" 24 android:minHeight="?attr/listPreferredItemHeightSmall" 25 android:paddingTop="4dp" 26 android:paddingBottom="4dp" 27 android:background="?attr/activatedBackgroundIndicator"> 28 29 <!-- Activity icon when presenting dialog 30 Size will be filled in by ResolverActivity --> 31 <ImageView android:id="@+id/icon" 32 android:layout_width="24dp" 33 android:layout_height="24dp" 34 android:layout_gravity="start|center_vertical" 35 android:layout_marginStart="?attr/listPreferredItemPaddingStart" 36 android:layout_marginTop="12dp" 37 android:layout_marginBottom="12dp" 38 android:scaleType="fitCenter" /> 39 40 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 41 android:gravity="start|center_vertical" 42 android:orientation="vertical" 43 android:paddingStart="?attr/listPreferredItemPaddingStart" 44 android:paddingEnd="?attr/listPreferredItemPaddingEnd" 45 android:layout_height="wrap_content" 46 android:layout_width="wrap_content" 47 android:layout_gravity="start|center_vertical"> 48 <!-- Activity name --> 49 <TextView android:id="@android:id/text1" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:textAppearance="?attr/textAppearanceMedium" 53 android:textColor="?attr/textColorPrimary" 54 android:minLines="1" 55 android:maxLines="1" 56 android:ellipsize="marquee" /> 57 <!-- Extended activity info to distinguish between duplicate activity names --> 58 <TextView android:id="@android:id/text2" 59 android:textAppearance="?android:attr/textAppearanceSmall" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:minLines="1" 63 android:maxLines="1" 64 android:ellipsize="marquee" /> 65 </LinearLayout> 66</LinearLayout> 67 68