Changeset View
Changeset View
Standalone View
Standalone View
res/layout/list_item_with_icon_entry.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
---|---|---|---|---|---|
2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | android:layout_width="fill_parent" | 3 | android:layout_width="fill_parent" | ||
4 | android:baselineAligned="false" | | |||
5 | android:layout_height="wrap_content" | 4 | android:layout_height="wrap_content" | ||
6 | android:paddingLeft="12dip" | 5 | android:background="@drawable/abc_list_selector_holo_dark" | ||
7 | android:paddingStart="12dip" | 6 | android:baselineAligned="false" | ||
8 | android:minHeight="?android:attr/listPreferredItemHeight" | 7 | android:clickable="true" | ||
9 | android:gravity="center_vertical" | 8 | android:gravity="center_vertical" | ||
10 | android:paddingRight="?android:attr/scrollbarSize" | 9 | android:minHeight="?android:attr/listPreferredItemHeight" | ||
10 | android:orientation="horizontal" | ||||
11 | android:paddingEnd="?android:attr/scrollbarSize" | 11 | android:paddingEnd="?android:attr/scrollbarSize" | ||
12 | android:clickable="true" | 12 | android:paddingLeft="12dip" | ||
13 | android:background="@drawable/abc_list_selector_holo_dark" | 13 | android:paddingRight="?android:attr/scrollbarSize" | ||
14 | android:orientation="horizontal"> | 14 | android:paddingStart="12dip"> | ||
15 | 15 | | |||
16 | <ImageView android:id="@+id/list_item_entry_icon" | 16 | <ImageView | ||
17 | android:id="@+id/list_item_entry_icon" | ||||
17 | android:layout_width="wrap_content" | 18 | android:layout_width="wrap_content" | ||
18 | android:layout_height="match_parent" | 19 | android:layout_height="match_parent" | ||
19 | android:layout_gravity="center_vertical" | 20 | android:layout_gravity="center_vertical" | ||
20 | android:src="@drawable/ic_device_laptop" | 21 | android:src="@drawable/ic_device_laptop" /> | ||
21 | /> | | |||
22 | 22 | | |||
23 | <LinearLayout | 23 | <LinearLayout | ||
24 | android:layout_width="wrap_content" | 24 | android:layout_width="wrap_content" | ||
25 | android:orientation="vertical" | 25 | android:layout_height="wrap_content" | ||
26 | android:layout_height="wrap_content"> | 26 | android:orientation="vertical"> | ||
27 | 27 | | |||
28 | <TextView android:id="@+id/list_item_entry_title" | 28 | <TextView | ||
29 | android:id="@+id/list_item_entry_title" | ||||
29 | android:layout_width="wrap_content" | 30 | android:layout_width="wrap_content" | ||
30 | android:layout_height="wrap_content" | 31 | android:layout_height="wrap_content" | ||
31 | android:layout_gravity="center_vertical" | 32 | android:layout_gravity="center_vertical" | ||
32 | android:layout_marginLeft="8dip" | 33 | android:layout_marginLeft="8dip" | ||
33 | android:layout_marginStart="8dip" | 34 | android:layout_marginStart="8dip" | ||
34 | android:singleLine="true" | | |||
35 | android:textAppearance="?android:attr/textAppearanceMedium" | | |||
36 | android:ellipsize="marquee" | 35 | android:ellipsize="marquee" | ||
37 | android:fadingEdge="horizontal" | 36 | android:fadingEdge="horizontal" | ||
38 | android:text="" /> | 37 | android:singleLine="true" | ||
38 | android:text="" | ||||
39 | android:textAppearance="?android:attr/textAppearanceMedium" /> | ||||
39 | 40 | | |||
40 | <TextView android:id="@+id/list_item_entry_summary" | 41 | <TextView | ||
42 | android:id="@+id/list_item_entry_summary" | ||||
41 | android:layout_width="wrap_content" | 43 | android:layout_width="wrap_content" | ||
42 | android:layout_height="wrap_content" | 44 | android:layout_height="wrap_content" | ||
43 | android:layout_marginLeft="8dip" | 45 | android:layout_marginLeft="8dip" | ||
44 | android:layout_marginStart="8dip" | 46 | android:layout_marginStart="8dip" | ||
45 | android:textAppearance="?android:attr/textAppearanceSmall" | | |||
46 | android:singleLine="true" | 47 | android:singleLine="true" | ||
48 | android:text="" | ||||
49 | android:textAppearance="?android:attr/textAppearanceSmall" | ||||
47 | android:textColor="#CC2222" | 50 | android:textColor="#CC2222" | ||
48 | android:visibility="gone" | 51 | android:visibility="gone" /> | ||
49 | android:text="" /> | | |||
50 | 52 | | |||
51 | </LinearLayout> | 53 | </LinearLayout> | ||
52 | 54 | | |||
53 | </LinearLayout> | 55 | </LinearLayout> |