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"> + + + + +