lv_chat_item_send.xml
2.01 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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/chat_header"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:layout_gravity="center_vertical"
android:layout_margin="10dp"
android:src="@mipmap/ic_launcher"
fresco:actualImageScaleType="centerInside"
fresco:placeholderImage="@mipmap/ic_launcher"
fresco:roundAsCircle="true" />
<TextView
android:id="@+id/tv_chatName"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:layout_marginTop="10dp"
android:layout_toLeftOf="@id/chat_header"
android:gravity="center_vertical"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:text="zzzz"
android:textColor="@color/text_gray"
android:textSize="12sp" />
<TextView
android:id="@+id/tv_chatContent"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:layout_below="@id/tv_chatName"
android:layout_marginBottom="10dp"
android:layout_toLeftOf="@id/chat_header"
android:background="@drawable/chat_msg_right"
android:gravity="center_vertical"
android:paddingRight="12dp"
android:text=""
android:textColor="@color/colorPrimary"
android:textSize="14sp" />
</RelativeLayout>
</LinearLayout>