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              xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
22              android:orientation="horizontal"
23              android:layout_height="wrap_content"
24              android:layout_width="match_parent"
25              android:minHeight="?android:attr/listPreferredItemHeightSmall"
26              android:background="?android:attr/activatedBackgroundIndicator">
27
28    <!-- Activity icon when presenting dialog
29         Size will be filled in by ResolverActivity -->
30    <ImageView android:id="@android:id/icon"
31               android:layout_width="@dimen/resolver_icon_size"
32               android:layout_height="@dimen/resolver_icon_size"
33               android:layout_gravity="start|center_vertical"
34               android:layout_marginStart="@dimen/resolver_icon_margin"
35               android:layout_marginEnd="@dimen/resolver_icon_margin"
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:paddingEnd="@dimen/resolver_edge_margin"
44              android:layout_height="wrap_content"
45              android:layout_width="wrap_content"
46              android:layout_gravity="start|center_vertical">
47        <!-- Activity name -->
48        <TextView android:id="@android:id/text1"
49                  android:layout_width="wrap_content"
50                  android:layout_height="wrap_content"
51                  android:layout_gravity="start|center_vertical"
52                  android:textColor="?android:attr/textColorPrimary"
53                  android:fontFamily="@androidprv:string/config_bodyFontFamily"
54                  android:textSize="16sp"
55                  android:minLines="1"
56                  android:maxLines="1"
57                  android:ellipsize="marquee" />
58        <!-- Extended activity info to distinguish between duplicate activity names
59            or provide record w/o permission warnings.
60        -->
61        <TextView android:id="@android:id/text2"
62                  android:textColor="?android:attr/textColorSecondary"
63                  android:fontFamily="@androidprv:string/config_bodyFontFamily"
64                  android:layout_gravity="start|center_vertical"
65                  android:textSize="14sp"
66                  android:visibility="gone"
67                  android:layout_width="wrap_content"
68                  android:layout_height="wrap_content"
69                  android:minLines="1"
70                  android:maxLines="2"
71                  android:ellipsize="marquee" />
72    </LinearLayout>
73</LinearLayout>
74
75