item_chat_dialog.xml
3.69 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
<?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="@null"
android:orientation="vertical" >
<!-- 时间 -->
<TextView
android:id="@+id/chat_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:layout_centerHorizontal="true"
android:background="@drawable/chat_dialog_time"
android:gravity="center"
android:textColor="#ffffff"
android:text="2015.10.10"
android:textSize="12sp"
/>
<RelativeLayout
android:id="@+id/rl_chat"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/chat_time"
android:layout_marginTop="5dp"
android:background="@null"
android:paddingLeft="10dp"
android:paddingRight="10dp" >
<LinearLayout
android:id="@+id/chart_from_container"
android:paddingBottom="10dp"
android:layout_width="match_parent"
android:layout_marginRight="30dp"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:orientation="horizontal"
>
<ImageView
android:id="@+id/chat_dialog_tou_oth"
android:layout_width="42dp"
android:layout_height="42dp"
android:src="@drawable/details_touxiang_bg" />
<TextView
android:id="@+id/chat_dialog_tv_oth"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/chat_bg"
android:gravity="center_vertical"
android:paddingLeft="15dp"
android:paddingRight="10dp"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:layout_marginLeft="10dp"
android:textColor="@color/hall_item_tv_name"
android:textSize="14sp" />
</LinearLayout>
<RelativeLayout
android:paddingBottom="10dp"
android:id="@+id/chart_to_container"
android:layout_width="match_parent"
android:layout_marginLeft="30dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
>
<TextView
android:id="@+id/chat_dialog_tv_sel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/chat_dialog_tou_sel"
android:layout_toLeftOf="@+id/chat_dialog_tou_sel"
android:background="@drawable/chat_bg_self"
android:gravity="center_vertical"
android:textSize="14sp"
android:paddingLeft="13dp"
android:paddingRight="13dp"
android:paddingTop="12dp"
android:paddingBottom="12dp"
android:layout_marginRight="10dp"
android:textColor="#000000"
/>
<ImageView
android:id="@+id/chat_dialog_tou_sel"
android:layout_width="42dp"
android:layout_height="42dp"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:src="@drawable/details_touxiang_bg" />
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>