-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathlayout_chat_common.xml
More file actions
87 lines (72 loc) · 3.3 KB
/
layout_chat_common.xml
File metadata and controls
87 lines (72 loc) · 3.3 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
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- 채팅 대화 내용 부분-->
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rv_chat"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#F5F5F5"
android:clipToPadding="false"
android:orientation="vertical"
android:overScrollMode="never"
android:padding="5sp"
app:layout_constraintBottom_toTopOf="@+id/layout_send"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<!--
대화 내용 업로드 x 일 때, Progress bar를 이용하기도 하는 것 같다..
-->
<!-- 채팅 내용 입력 부분 -->
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/layout_send"
android:layout_width="match_parent"
android:layout_height="70dp"
android:background="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent">
<ImageButton
android:id="@+id/btn_plus"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_marginVertical="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="5dp"
android:background="@color/white"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintWidth_percent="0.3"
app:srcCompat="@drawable/plus_line_vector_image" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginVertical="10dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="@drawable/round_background_color_border"
android:orientation="horizontal"
app:layout_constraintLeft_toRightOf="@+id/btn_plus"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintWidth_percent="0.7">
<EditText
android:id="@+id/edittext_send_msg"
android:layout_width="280dp"
android:layout_height="match_parent"
android:layout_marginRight="5dp"
android:background="@null"
android:hint="내용 입력"
android:paddingLeft="10dp"
android:textColor="@color/text_2"
android:textSize="15sp" />
<ImageButton
android:id="@+id/button_send_msg"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@color/white"
app:srcCompat="@drawable/send_vector_image" />
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>