blob: 6a1e85135a0f0b2a2ab05f49b887c94ab15137de [file] [log] [blame]
The Android Open Source Project0c908882009-03-03 19:32:16 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3/*
4 * Copyright 2008, 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
20<com.android.internal.view.menu.ListMenuItemView
21 xmlns:android="http://schemas.android.com/apk/res/android"
22 android:layout_width="fill_parent"
23 android:layout_height="?android:attr/listPreferredItemHeight">
24
25 <RelativeLayout
26 android:layout_width="0dip"
27 android:layout_weight="1"
28 android:layout_height="wrap_content"
29 android:layout_gravity="center_vertical"
30 android:layout_marginLeft="6dip"
31 android:layout_marginRight="6dip"
32 android:duplicateParentState="true">
33
34 <TextView
35 android:id="@+id/title"
36 android:layout_width="fill_parent"
37 android:layout_height="wrap_content"
38 android:layout_alignParentTop="true"
39 android:layout_alignParentLeft="true"
40 android:textAppearance="?android:attr/textAppearanceMedium"
41 android:singleLine="true"
42 android:duplicateParentState="true"
43 android:ellipsize="start"
44 android:fadingEdge="none"/>
45
46 <TextView
47 android:id="@+id/subtitle"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_below="@id/title"
51 android:layout_alignParentLeft="true"
52 android:textAppearance="?android:attr/textAppearanceSmall"
53 android:singleLine="false"
54 android:duplicateParentState="true"/>
55
56 <TextView
57 android:id="@+id/info"
58 android:visibility="gone"
59 android:layout_width="wrap_content"
60 android:layout_height="wrap_content"
61 android:layout_below="@id/subtitle"
62 android:textAppearance="?android:attr/textAppearanceMedium"
63 android:singleLine="true"
64 android:layout_centerHorizontal="true"
65 android:duplicateParentState="true"
66 android:ellipsize="marquee"
67 android:fadingEdge="horizontal"/>
68
69 </RelativeLayout>
70
71 <LinearLayout
72 android:layout_width="wrap_content"
73 android:layout_height="fill_parent"
74 android:paddingLeft="10dip"
75 android:gravity="center_vertical"
76 android:orientation="horizontal">
77
78 <ImageView
79 android:id="@+id/icon"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:visibility="gone"
83 android:src="@drawable/ic_dialog_menu_generic" />
84
85 <CheckBox
86 android:id="@+id/checkbox"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:layout_alignParentLeft="true"
90 android:drawablePadding="10dip"
91 android:focusable="false"
92 android:clickable="false"
93 android:duplicateParentState="true"
94 android:visibility="gone"
95 android:textSize="16dip"/>
96
97 </LinearLayout>
98
99</com.android.internal.view.menu.ListMenuItemView>