Haitao Zhang | 32232f5 | 2017-03-12 01:27:15 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <LinearLayout |
| 3 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 | android:layout_width="fill_parent" |
| 5 | android:layout_height="?android:attr/listPreferredItemHeight" |
| 6 | android:background="?android:attr/activatedBackgroundIndicator" |
| 7 | android:padding="6dip"> |
| 8 | <ImageView |
| 9 | android:id="@+id/icon" |
| 10 | android:layout_width="wrap_content" |
| 11 | android:layout_height="fill_parent" |
| 12 | android:layout_marginRight="2dip" |
| 13 | android:src="@drawable/machine" /> |
| 14 | <LinearLayout |
| 15 | android:orientation="vertical" |
| 16 | android:layout_width="0dip" |
| 17 | android:layout_weight="1" |
| 18 | android:layout_height="fill_parent"> |
| 19 | <TextView |
| 20 | android:id="@+id/device_name" |
| 21 | android:layout_width="fill_parent" |
| 22 | android:layout_height="0dip" |
| 23 | android:layout_weight="1" |
| 24 | android:gravity="center_vertical" /> |
| 25 | <TextView |
| 26 | android:layout_width="fill_parent" |
| 27 | android:layout_height="0dip" |
| 28 | android:layout_weight="1" |
| 29 | android:id="@+id/device_details" |
| 30 | android:ellipsize="marquee" /> |
| 31 | </LinearLayout> |
| 32 | </LinearLayout> |