layout_chat_input.xml
3.36 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
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<View
android:id="@+id/click_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/input_layout" />
<ImageView
android:layout_width="match_parent"
android:layout_height="1px"
android:layout_above="@+id/input_layout"
android:background="#D5D5D5" />
<LinearLayout
android:id="@+id/input_layout"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_alignParentBottom="true"
android:background="@android:color/white">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:paddingBottom="9dp"
android:paddingTop="9dp">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="30dp"
android:layout_centerVertical="true"
android:layout_marginLeft="8dp"
android:background="#ffffff"
android:orientation="horizontal">
<ImageView
android:visibility="gone"
android:id="@+id/emoticons_button"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_centerVertical="true"
android:layout_marginLeft="8dp"
android:src="@drawable/expression_face_selector" />
<EditText
android:layout_marginLeft="5dp"
android:layout_toLeftOf="@+id/send"
android:layout_toRightOf="@+id/emoticons_button"
android:id="@+id/chat_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@null"
android:gravity="center_vertical"
android:hint="请输入聊天内容"
android:imeOptions="actionSend|flagNoExtractUi"
android:inputType="textLongMessage"
android:maxLength="120"
android:paddingLeft="8dp"
android:textColor="#323333"
android:textColorHint="#c3c3c9"
android:textSize="16sp" />
<TextView
android:visibility="gone"
android:id="@+id/send"
android:layout_width="50dp"
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:background="@drawable/btn_send_chat_selector"
android:gravity="center"
android:text="发送"
android:textColor="@color/chat_send_text"
android:textSize="16sp" />
</RelativeLayout>
</RelativeLayout>
</LinearLayout>
</RelativeLayout>