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 | ||
3 | xmlns:android="http://schemas.android.com/apk/res/android" | ||||
4 | xmlns:app="http://schemas.android.com/apk/res-auto" | ||||
3 | android:layout_width="fill_parent" | 5 | android:layout_width="fill_parent" | ||
4 | android:layout_height="wrap_content" | 6 | android:layout_height="wrap_content" | ||
5 | android:background="@drawable/abc_list_selector_holo_dark" | 7 | android:background="@drawable/abc_list_selector_holo_dark" | ||
6 | android:baselineAligned="false" | 8 | android:baselineAligned="false" | ||
7 | android:clickable="true" | 9 | android:clickable="true" | ||
8 | android:focusable="true" | 10 | android:focusable="true" | ||
9 | android:gravity="center_vertical" | 11 | android:gravity="center_vertical" | ||
10 | android:minHeight="?android:attr/listPreferredItemHeight" | 12 | android:minHeight="?android:attr/listPreferredItemHeight" | ||
11 | android:orientation="horizontal" | 13 | android:orientation="horizontal" | ||
12 | android:paddingEnd="?android:attr/scrollbarSize" | 14 | android:paddingEnd="?android:attr/scrollbarSize" | ||
13 | android:paddingLeft="12dip" | 15 | android:paddingLeft="12dip" | ||
14 | android:paddingRight="?android:attr/scrollbarSize" | 16 | android:paddingRight="?android:attr/scrollbarSize" | ||
15 | android:paddingStart="12dip"> | 17 | android:paddingStart="12dip"> | ||
16 | 18 | | |||
17 | <ImageView | 19 | <android.support.v7.widget.AppCompatImageView | ||
18 | android:id="@+id/list_item_entry_icon" | 20 | android:id="@+id/list_item_entry_icon" | ||
19 | android:layout_width="wrap_content" | 21 | android:layout_width="wrap_content" | ||
20 | android:layout_height="match_parent" | 22 | android:layout_height="match_parent" | ||
21 | android:layout_gravity="center_vertical" | 23 | android:layout_gravity="center_vertical" | ||
22 | android:contentDescription="@string/device_icon_description" | 24 | android:contentDescription="@string/device_icon_description" | ||
25 | app:tint="?attr/colorControlNormal" | ||||
23 | android:src="@drawable/ic_device_laptop" /> | 26 | android:src="@drawable/ic_device_laptop" /> | ||
24 | 27 | | |||
25 | <LinearLayout | 28 | <LinearLayout | ||
26 | android:layout_width="wrap_content" | 29 | android:layout_width="wrap_content" | ||
27 | android:layout_height="wrap_content" | 30 | android:layout_height="wrap_content" | ||
28 | android:orientation="vertical"> | 31 | android:orientation="vertical"> | ||
29 | 32 | | |||
30 | <TextView | 33 | <TextView | ||
Show All 27 Lines |