Skip to content

Commit 95d372e

Browse files
committed
Chatting UI
1 parent 7e0f92a commit 95d372e

File tree

6 files changed

+7
-13
lines changed

6 files changed

+7
-13
lines changed

app/src/main/java/com/edcan/howtosunrin/ui/savequestion/SaveQnARecyclerHolder.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ package com.edcan.howtosunrin.ui.savequestion
33
import android.view.LayoutInflater
44
import android.view.ViewGroup
55
import androidx.recyclerview.widget.RecyclerView
6-
import com.edcan.howtosunrin.databinding.LayoutQuestionBinding
6+
import com.edcan.howtosunrin.databinding.ItemSaveQuestionBinding
77
import com.edcan.howtosunrin.utill.qna.Question
88

9-
class SaveQnARecyclerHolder(private val binding : LayoutQuestionBinding)
9+
class SaveQnARecyclerHolder(private val binding : ItemSaveQuestionBinding)
1010
: RecyclerView.ViewHolder(binding.root) {
1111

1212
constructor(parent: ViewGroup) : this(
13-
LayoutQuestionBinding.inflate(LayoutInflater.from(parent.context), parent ,false)
13+
ItemSaveQuestionBinding.inflate(LayoutInflater.from(parent.context), parent ,false)
1414
)
1515

1616
init {

app/src/main/res/layout/activity_group_chat.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
3030
android:layout_width="0dp"
3131
android:layout_height="0dp"
3232

33-
android:orientation="vertical"
34-
android:backgroundTint="#f7f7f7"
35-
36-
3733
tools:listitem="@layout/item_you_chat_recycleritem"
3834
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
3935
app:stackFromEnd="true"
@@ -73,6 +69,7 @@
7369
android:layout_width="0dp"
7470
android:layout_height="wrap_content"
7571

72+
android:hint="채팅을 입력해보세요."
7673
android:text="@={viewModel.content}"
7774
android:textSize="20sp"
7875

app/src/main/res/layout/activity_save_question.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
app:bindSaveQnAItems="@{viewModel.saveQuestionList}"
3535

36-
tools:listitem="@layout/layout_question"
36+
tools:listitem="@layout/item_save_question"
3737
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
3838

3939
app:layout_constraintTop_toBottomOf="@id/toolBar_saveQnA"

app/src/main/res/layout/item_i_chat_recycleritem.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
<androidx.constraintlayout.widget.ConstraintLayout
1616
android:layout_width="match_parent"
1717
android:layout_height="wrap_content"
18-
android:orientation="horizontal"
19-
android:background="@color/white"
2018

2119
android:paddingHorizontal="20dp"
2220
android:paddingVertical="5dp">
@@ -28,6 +26,7 @@
2826

2927
android:text="@{userData.name}"
3028
tools:text="박희찬"
29+
android:textColor="@color/EDCAN"
3130
android:textSize="12sp"
3231

3332
android:gravity="center"

app/src/main/res/layout/item_you_chat_recycleritem.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
<androidx.constraintlayout.widget.ConstraintLayout
1616
android:layout_width="match_parent"
1717
android:layout_height="wrap_content"
18-
android:orientation="horizontal"
19-
android:background="@color/white"
2018

2119
android:paddingHorizontal="20dp"
2220
android:paddingVertical="5dp">
@@ -29,7 +27,6 @@
2927
android:text="@{userData.name}"
3028
tools:text="바키찬"
3129
android:textSize="12sp"
32-
android:textColor="@color/black"
3330

3431
android:gravity="center"
3532

@@ -45,6 +42,7 @@
4542
android:text="@{chatData.content}"
4643
tools:text="EDCAN은 정말 최고야 EDCAN은 정말 최고야 EDCAN은 정말 최고야 EDCAN은 정말 최고야 EDCAN은 정말 최고야 EDCAN은 정말 최고야"
4744
android:textSize="14sp"
45+
android:textColor="@color/black"
4846
android:textFontWeight="400"
4947

5048
android:background="@drawable/default_rect_round"

0 commit comments

Comments
 (0)