|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- |
|
3 //device/apps/common/res/any/layout/resolve_list_item.xml |
|
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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
19 android:gravity="center" |
|
20 android:orientation="vertical" |
|
21 android:layout_height="wrap_content" |
|
22 android:layout_width="match_parent" |
|
23 android:background="@drawable/icon_grid_item_bg" |
|
24 android:padding="16dp"> |
|
25 |
|
26 <!-- Extended activity info to distinguish between duplicate activity names --> |
|
27 <TextView android:id="@android:id/text2" |
|
28 android:textAppearance="?android:attr/textAppearance" |
|
29 android:layout_width="wrap_content" |
|
30 android:layout_height="wrap_content" |
|
31 android:gravity="center" |
|
32 android:minLines="2" |
|
33 android:maxLines="2" |
|
34 android:paddingTop="4dip" |
|
35 android:paddingBottom="4dip" /> |
|
36 |
|
37 <!-- Activity icon when presenting dialog |
|
38 Size will be filled in by ResolverActivity --> |
|
39 <ImageView android:id="@+id/icon" |
|
40 android:layout_width="0dp" |
|
41 android:layout_height="0dp" |
|
42 android:scaleType="fitCenter" /> |
|
43 |
|
44 <!-- Activity name --> |
|
45 <TextView android:id="@android:id/text1" |
|
46 android:textAppearance="?android:attr/textAppearanceSmall" |
|
47 android:layout_width="wrap_content" |
|
48 android:layout_height="wrap_content" |
|
49 android:gravity="center" |
|
50 android:minLines="2" |
|
51 android:maxLines="2" |
|
52 android:paddingTop="4dip" |
|
53 android:paddingBottom="4dip" /> |
|
54 </LinearLayout> |
|
55 |