resolve_list_item.xml revision aac0d4ed026d1cfbcf3fa81c6e4eb96f4347ca17
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:gravity="center"
22              android:orientation="vertical"
23              android:layout_height="wrap_content"
24              android:layout_width="match_parent"
25              android:background="@android:drawable/activity_picker_bg"
26              android:padding="16dp">
27
28    <!-- Extended activity info to distinguish between duplicate activity names -->
29    <TextView android:id="@android:id/text2"
30              android:textAppearance="?android:attr/textAppearance"
31              android:layout_width="wrap_content"
32              android:layout_height="wrap_content"
33              android:gravity="center"
34              android:minLines="2"
35              android:maxLines="2"
36              android:paddingStart="4dip"
37              android:paddingEnd="4dip" />
38
39    <!-- Activity icon when presenting dialog
40         Size will be filled in by ResolverActivity -->
41    <ImageView android:id="@+id/icon"
42               android:layout_width="0dp"
43               android:layout_height="0dp"
44               android:scaleType="fitCenter" />
45
46    <!-- Activity name -->
47    <TextView android:id="@android:id/text1"
48              android:textAppearance="?android:attr/textAppearanceSmall"
49              android:layout_width="wrap_content"
50              android:layout_height="wrap_content"
51              android:gravity="center"
52              android:minLines="2"
53              android:maxLines="2"
54              android:paddingStart="4dip"
55              android:paddingEnd="4dip" />
56</LinearLayout>
57
58