chat_question_item.xml
3.56 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
<?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:orientation="vertical"
android:padding="10dp">
<TextView
android:id="@+id/tv_question_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp"
android:text="提问"
android:textColor="@android:color/black"
android:textSize="20dp" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_question_avatar"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_margin="5dp"
android:layout_marginRight="10dp" />
<TextView
android:id="@+id/tv_question_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="00:00" />
<TextView
android:id="@+id/tv_question_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@id/tv_chat_time"
android:layout_toRightOf="@id/iv_chat_avatar"
android:text="提问于00:00" />
</LinearLayout>
<LinearLayout
android:id="@+id/ll_answer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:visibility="visible">
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@android:color/darker_gray"></View>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_answer_avatar"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_margin="5dp"
android:layout_marginRight="10dp" />
<TextView
android:id="@+id/tv_answer_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="00:00" />
<TextView
android:id="@+id/tv_answer_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_toLeftOf="@id/tv_chat_time"
android:layout_toRightOf="@id/iv_chat_avatar"
android:text="回答于00:00" />
</LinearLayout>
<TextView
android:id="@+id/tv_answer_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="5dp"
android:text="回答"
android:textColor="@android:color/holo_red_light"
android:textSize="20dp" />
</LinearLayout>
</LinearLayout>