wangzhibo
4 天以前 ae6f40460dcd56af6c5f60ba52c883854c3bac55
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?android:attr/activatedBackgroundIndicator"
    android:paddingStart="1dp">
 
    <ImageView
        android:id="@+id/item_preview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentStart="true"
        android:layout_centerHorizontal="true"
        android:contentDescription="Item preview" />
 
    <ImageView
        android:id="@+id/item_image"
        android:layout_width="8dp"
        android:layout_height="8dp"
        android:layout_toEndOf="@+id/item_preview"
        android:contentDescription="@string/candidate_item_device_image" />
 
    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_centerVertical="true"
        android:layout_toEndOf="@+id/item_image"
        android:orientation="horizontal"
        android:paddingStart="2dp"
        android:paddingEnd="2dp">
 
        <TextView
            android:id="@+id/item_name"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:scrollHorizontally="false"
            android:textColor="@color/secondarytext"
            android:textSize="12sp"
            android:text="Item Name"
            android:singleLine="true" />
 
        <TextView
            android:id="@+id/item_details"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textColor="@color/secondarytext"
            android:textSize="12sp"
            android:text="Item Description" />
    </LinearLayout>
 
</RelativeLayout>