From 89277c56684084c8884c4fe83c611edfacd7f75c Mon Sep 17 00:00:00 2001 From: klaus Date: Fri, 13 Jun 2025 17:07:16 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20?= =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20-=20?= =?UTF-8?q?=EB=B9=84=EB=B0=80=EB=8C=93=EA=B8=80=20=ED=83=9C=EA=B7=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GetCommunityPostCommentListResponse.kt | 1 + .../comment/CreatorCommunityCommentAdapter.kt | 5 +++ .../layout/item_community_post_comment.xml | 43 ++++++++++++++----- 3 files changed, 39 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/GetCommunityPostCommentListResponse.kt b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/GetCommunityPostCommentListResponse.kt index 37403602..df353f92 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/GetCommunityPostCommentListResponse.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/GetCommunityPostCommentListResponse.kt @@ -19,6 +19,7 @@ data class GetCommunityPostCommentListItem( @SerializedName("nickname") val nickname: String, @SerializedName("profileUrl") val profileUrl: String, @SerializedName("comment") val comment: String, + @SerializedName("isSecret") val isSecret: Boolean, @SerializedName("date") val date: String, @SerializedName("replyCount") val replyCount: Int, ) : Parcelable diff --git a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/all/comment/CreatorCommunityCommentAdapter.kt b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/all/comment/CreatorCommunityCommentAdapter.kt index 96dc0b62..870c9e93 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/all/comment/CreatorCommunityCommentAdapter.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/creator_community/all/comment/CreatorCommunityCommentAdapter.kt @@ -43,6 +43,11 @@ class CreatorCommunityCommentAdapter( binding.tvComment.text = item.comment binding.tvCommentDate.text = item.date binding.tvCommentNickname.text = item.nickname + binding.tvSecret.visibility = if (item.isSecret) { + View.VISIBLE + } else { + View.GONE + } binding.tvWriteReply.text = if (item.replyCount > 0) { "답글 ${item.replyCount}개" diff --git a/app/src/main/res/layout/item_community_post_comment.xml b/app/src/main/res/layout/item_community_post_comment.xml index 3684f4fb..bf7010a3 100644 --- a/app/src/main/res/layout/item_community_post_comment.xml +++ b/app/src/main/res/layout/item_community_post_comment.xml @@ -13,18 +13,41 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> - + app:layout_constraintTop_toTopOf="@+id/iv_comment_profile"> + + + + +