Changeset View
Changeset View
Standalone View
Standalone View
res/layout/list_item_entry.xml
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | 3 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
4 | android:layout_width="fill_parent" | 4 | android:layout_width="fill_parent" | ||
5 | android:layout_height="wrap_content" | 5 | android:layout_height="wrap_content" | ||
6 | android:background="@drawable/abc_list_selector_holo_dark" | 6 | android:background="@drawable/abc_list_selector_holo_dark" | ||
7 | android:baselineAligned="false" | 7 | android:baselineAligned="false" | ||
8 | android:gravity="center_vertical" | 8 | android:gravity="center_vertical" | ||
9 | android:minHeight="?android:attr/listPreferredItemHeight" | 9 | android:minHeight="?android:attr/listPreferredItemHeight" | ||
10 | android:orientation="vertical" | 10 | android:orientation="vertical" | ||
11 | android:paddingEnd="?android:attr/scrollbarSize" | 11 | android:paddingEnd="?android:attr/scrollbarSize" | ||
12 | android:paddingLeft="12dip" | 12 | android:paddingLeft="12dip" | ||
13 | android:paddingRight="?android:attr/scrollbarSize" | 13 | android:paddingRight="?android:attr/scrollbarSize" | ||
14 | android:paddingStart="12dip"> | 14 | android:paddingStart="12dip" | ||
15 | android:id="@+id/list_item_entry"> | ||||
15 | <!-- We should use android:background="@android:/listChoiceBackgroundIndicator" | 16 | <!-- We should use android:background="@android:/listChoiceBackgroundIndicator" | ||
16 | instead of abc_list_selector_holo_dark but that's only supported from API11 --> | 17 | instead of abc_list_selector_holo_dark but that's only supported from API11 --> | ||
17 | 18 | | |||
18 | <TextView | 19 | <TextView | ||
19 | android:id="@+id/list_item_entry_title" | 20 | android:id="@+id/list_item_entry_title" | ||
20 | android:layout_width="wrap_content" | 21 | android:layout_width="wrap_content" | ||
21 | android:layout_height="wrap_content" | 22 | android:layout_height="wrap_content" | ||
22 | android:ellipsize="marquee" | 23 | android:ellipsize="marquee" | ||
Show All 16 Lines |