push_chat_fragment.xml
4.73 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?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="match_parent"
android:background="#2196F3"
android:orientation="vertical">
<LinearLayout
android:id="@+id/chat_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center_vertical"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal">
<!--购物车-->
<RelativeLayout
android:id="@+id/lin_shopping"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<ImageView
android:id="@+id/shopping"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_gravity="center"
android:src="@drawable/mall" />
</RelativeLayout>
<!--聊天信息-->
<LinearLayout
android:id="@+id/lin_say"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:layout_weight="3"
android:orientation="horizontal"
android:paddingTop="5dp"
android:paddingBottom="5dp">
<TextView
android:id="@+id/text_chat_content"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_weight="1"
android:background="@drawable/bg_live_info"
android:padding="10dp"
android:textColor="#ffffff"
android:textSize="15dp" />
</LinearLayout>
<!--分享-->
<RelativeLayout
android:id="@+id/lin_share"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginLeft="5dp"
android:layout_weight="1">
<ImageView
android:id="@+id/share"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:src="@drawable/share" />
</RelativeLayout>
<!--点赞-->
<RelativeLayout
android:id="@+id/lin_fabulous"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginRight="5dp"
android:layout_weight="1">
<ImageView
android:id="@+id/fabulous"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:src="@drawable/love_yes" />
<TextView
android:id="@+id/view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="3dp" />
<TextView
android:id="@+id/num"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="7dp"
android:layout_toRightOf="@+id/view"
android:background="@drawable/fabulous_select"
android:paddingLeft="3dp"
android:paddingRight="3dp"
android:text="999"
android:textColor="@color/white"
android:textSize="8dp" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
<ListView
android:id="@+id/lv_chat"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/chat_view"
android:divider="@null"
android:transcriptMode="alwaysScroll"></ListView>
</RelativeLayout>