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 | 2 | | |||
3 | <LinearLayout | 3 | <LinearLayout | ||
4 | xmlns:android="http://schemas.android.com/apk/res/android" | 4 | xmlns:android="http://schemas.android.com/apk/res/android" | ||
5 | xmlns:app="http://schemas.android.com/apk/res-auto" | 5 | xmlns:app="http://schemas.android.com/apk/res-auto" | ||
6 | android:layout_width="match_parent" | 6 | android:layout_width="match_parent" | ||
7 | android:layout_height="wrap_content" | 7 | android:layout_height="wrap_content" | ||
8 | android:background="@drawable/abc_list_selector_holo_dark" | 8 | android:background="@drawable/abc_list_selector_holo_dark" | ||
9 | android:baselineAligned="false" | 9 | android:baselineAligned="false" | ||
10 | android:gravity="center_vertical" | 10 | android:gravity="center_vertical" | ||
11 | android:minHeight="?android:attr/listPreferredItemHeight" | 11 | android:minHeight="?android:attr/listPreferredItemHeight" | ||
12 | android:orientation="horizontal" | 12 | android:orientation="horizontal" | ||
13 | android:paddingLeft="16dp" | 13 | android:paddingLeft="16dp" | ||
14 | android:paddingRight="16dp"> | 14 | android:paddingRight="16dp"> | ||
15 | 15 | | |||
16 | <android.support.v7.widget.AppCompatImageView | 16 | <androidx.appcompat.widget.AppCompatImageView | ||
17 | android:id="@+id/list_item_entry_icon" | 17 | android:id="@+id/list_item_entry_icon" | ||
18 | android:layout_width="wrap_content" | 18 | android:layout_width="wrap_content" | ||
19 | android:layout_height="match_parent" | 19 | android:layout_height="match_parent" | ||
20 | android:layout_gravity="center_vertical" | 20 | android:layout_gravity="center_vertical" | ||
21 | android:layout_marginLeft="12dp" | 21 | android:layout_marginLeft="12dp" | ||
22 | android:layout_marginStart="12dp" | 22 | android:layout_marginStart="12dp" | ||
23 | android:contentDescription="@string/device_icon_description" | 23 | android:contentDescription="@string/device_icon_description" | ||
24 | android:src="@drawable/ic_device_laptop" | 24 | android:src="@drawable/ic_device_laptop" | ||
Show All 36 Lines |