view_im_inputview.xml
4.9 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
127
128
129
130
131
132
133
134
135
136
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:emojicon="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:background="#fff"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
android:background="@drawable/shape_round8dp_f8f8f8"
android:orientation="horizontal">
<com.rockerhieu.emojicon.EmojiconEditText
android:id="@+id/emoji_edittext"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@android:color/transparent"
android:hint="请输入聊天内容..."
android:imeOptions="actionSend"
android:inputType="textMultiLine"
android:lineSpacingExtra="2dp"
android:maxLength="500"
android:maxLines="4"
android:minHeight="36dp"
android:paddingBottom="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingTop="8dp"
android:scrollbars="vertical"
android:singleLine="false"
android:textColor="#333"
android:textColorHint="#999"
android:textSize="15sp"
emojicon:emojiconSize="16dip" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="36dp"
android:layout_gravity="bottom"
android:gravity="center_vertical"
android:orientation="horizontal"
android:visibility="gone">
<View
android:layout_width="1px"
android:layout_height="14dp"
android:background="#ccc"></View>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="12dp"
android:layout_marginRight="12dp"
android:text="发送" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="13dp"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
android:layout_marginTop="13dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_input_voice"
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@drawable/ico_im_input_voice" />
<ImageView
android:id="@+id/iv_input_img"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginLeft="30dp"
android:src="@drawable/ico_im_input_img" />
<ImageView
android:id="@+id/iv_input_emoji"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginLeft="30dp"
android:src="@drawable/ico_im_input_emoji" />
<ImageView
android:id="@+id/iv_input_gift"
android:layout_width="20dp"
android:layout_height="20dp"
android:layout_marginLeft="30dp"
android:src="@drawable/ico_im_input_gift" />
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!--录音-->
<com.chudiangameplay.android.module_im.ui.view.IM_VoiceInputView
android:id="@+id/voice_inputview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" />
<!--选择图片-->
<com.chudiangameplay.android.module_im.ui.view.IM_ImgSelectView
android:id="@+id/imgselectview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" />
<!--emoji表情-->
<com.chudiangameplay.android.module_im.ui.view.IM_EmojiGridView
android:id="@+id/emojigridview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" />
<com.chudiangameplay.android.ui.view.SendGiftView
android:id="@+id/sendgiftview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#fff"
app:showDesc="false"
android:visibility="gone" />
</RelativeLayout>
</LinearLayout>