-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathitem_list.xml
executable file
·86 lines (75 loc) · 2.74 KB
/
item_list.xml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/ui_white"
android:orientation="horizontal" >
<LinearLayout
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="8dp"
android:paddingTop="8dp"
android:paddingLeft="10dp">
<FrameLayout
android:layout_height="wrap_content"
android:layout_width="wrap_content">
<com.android.volley.toolbox.NetworkImageView
android:id="@+id/avatar"
android:layout_width="45dp"
android:scaleType="centerCrop"
android:layout_height="45dp" />
</FrameLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_marginLeft="10dp"
android:gravity="center_vertical"
android:layout_weight="1">
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="@color/ui_black"
android:textSize="17sp"/>
<TextView
android:id="@+id/last_message"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:layout_marginTop="3dp"
android:singleLine="true"
android:textColor="@color/text_gray1"
android:textSize="14sp"/>
</LinearLayout>
<com.xinlan.dragindicator.DragIndicatorView
android:layout_margin="10dp"
android:id="@+id/count"
android:layout_width="20dp"
android:layout_height="18dp"
android:layout_gravity="right"
android:background="#ff0000"
android:textColor="#ffffff"
android:textSize="14sp"/>
</LinearLayout>
<TextView
android:id="@+id/read"
android:layout_width="70dp"
android:layout_height="match_parent"
android:background="@android:color/darker_gray"
android:gravity="center"
android:paddingLeft="20dp"
android:textColor="@android:color/white"
android:paddingRight="20dp"
android:text="已读" />
<TextView
android:id="@+id/delete"
android:layout_width="80dp"
android:layout_height="match_parent"
android:background="#FFFF0000"
android:gravity="center"
android:paddingLeft="20dp"
android:textColor="@android:color/white"
android:paddingRight="20dp"
android:text="删除" />
</LinearLayout>