1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+
3
+ <android .support.constraint.ConstraintLayout
4
+ xmlns : android =" http://schemas.android.com/apk/res/android"
5
+ xmlns : app =" http://schemas.android.com/apk/res-auto"
6
+ xmlns : tools =" http://schemas.android.com/tools"
7
+ android : layout_width =" match_parent"
8
+ android : layout_height =" match_parent"
9
+ tools : context =" com.example.chatfull.MessageListActivity" >
10
+
11
+ <android .support.v7.widget.RecyclerView
12
+ android : id =" @+id/reyclerview_message_list"
13
+ android : layout_width =" 0dp"
14
+ android : layout_height =" 0dp"
15
+ app : layout_constraintTop_toTopOf =" parent"
16
+ app : layout_constraintLeft_toLeftOf =" parent"
17
+ app : layout_constraintRight_toRightOf =" parent" >
18
+ </android .support.v7.widget.RecyclerView>
19
+
20
+ <!-- A horizontal line between the chatbox and RecyclerView -->
21
+ <View
22
+ android : layout_width =" 0dp"
23
+ android : layout_height =" 2dp"
24
+ android : background =" #dfdfdf"
25
+ android : layout_marginBottom =" 0dp"
26
+ app : layout_constraintBottom_toTopOf =" @+id/layout_chatbox"
27
+ app : layout_constraintLeft_toLeftOf =" parent"
28
+ app : layout_constraintRight_toRightOf =" parent" />
29
+
30
+ <LinearLayout
31
+ android : id =" @+id/layout_chatbox"
32
+ android : layout_width =" 0dp"
33
+ android : layout_height =" wrap_content"
34
+ android : orientation =" horizontal"
35
+ android : minHeight =" 48dp"
36
+ android : background =" #ffffff"
37
+ app : layout_constraintBottom_toBottomOf =" parent"
38
+ app : layout_constraintRight_toRightOf =" parent"
39
+ app : layout_constraintLeft_toLeftOf =" parent" >
40
+
41
+ <EditText
42
+ android : id =" @+id/edittext_chatbox"
43
+ android : hint =" Enter message"
44
+ android : background =" @android:color/transparent"
45
+ android : layout_gravity =" center"
46
+ android : layout_marginLeft =" 16dp"
47
+ android : layout_marginRight =" 16dp"
48
+ android : layout_width =" 0dp"
49
+ android : layout_weight =" 1"
50
+ android : layout_height =" wrap_content"
51
+ android : maxLines =" 6" />
52
+
53
+ <Button
54
+ android : id =" @+id/button_chatbox_send"
55
+ android : text =" SEND"
56
+ android : textSize =" 14dp"
57
+ android : background =" ?attr/selectableItemBackground"
58
+ android : clickable =" true"
59
+ android : layout_width =" 64dp"
60
+ android : layout_height =" 48dp"
61
+ android : gravity =" center"
62
+ android : layout_gravity =" bottom" />
63
+
64
+ </LinearLayout >
65
+
66
+ </android .support.constraint.ConstraintLayout>
0 commit comments