feat: 커뮤니티 댓글 리스트
- 비밀댓글 태그 추가
This commit is contained in:
		@@ -19,6 +19,7 @@ data class GetCommunityPostCommentListItem(
 | 
				
			|||||||
    @SerializedName("nickname") val nickname: String,
 | 
					    @SerializedName("nickname") val nickname: String,
 | 
				
			||||||
    @SerializedName("profileUrl") val profileUrl: String,
 | 
					    @SerializedName("profileUrl") val profileUrl: String,
 | 
				
			||||||
    @SerializedName("comment") val comment: String,
 | 
					    @SerializedName("comment") val comment: String,
 | 
				
			||||||
 | 
					    @SerializedName("isSecret") val isSecret: Boolean,
 | 
				
			||||||
    @SerializedName("date") val date: String,
 | 
					    @SerializedName("date") val date: String,
 | 
				
			||||||
    @SerializedName("replyCount") val replyCount: Int,
 | 
					    @SerializedName("replyCount") val replyCount: Int,
 | 
				
			||||||
) : Parcelable
 | 
					) : Parcelable
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -43,6 +43,11 @@ class CreatorCommunityCommentAdapter(
 | 
				
			|||||||
            binding.tvComment.text = item.comment
 | 
					            binding.tvComment.text = item.comment
 | 
				
			||||||
            binding.tvCommentDate.text = item.date
 | 
					            binding.tvCommentDate.text = item.date
 | 
				
			||||||
            binding.tvCommentNickname.text = item.nickname
 | 
					            binding.tvCommentNickname.text = item.nickname
 | 
				
			||||||
 | 
					            binding.tvSecret.visibility = if (item.isSecret) {
 | 
				
			||||||
 | 
					                View.VISIBLE
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					                View.GONE
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            binding.tvWriteReply.text = if (item.replyCount > 0) {
 | 
					            binding.tvWriteReply.text = if (item.replyCount > 0) {
 | 
				
			||||||
                "답글 ${item.replyCount}개"
 | 
					                "답글 ${item.replyCount}개"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,18 +13,41 @@
 | 
				
			|||||||
        app:layout_constraintStart_toStartOf="parent"
 | 
					        app:layout_constraintStart_toStartOf="parent"
 | 
				
			||||||
        app:layout_constraintTop_toTopOf="parent" />
 | 
					        app:layout_constraintTop_toTopOf="parent" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <TextView
 | 
					    <LinearLayout
 | 
				
			||||||
        android:id="@+id/tv_comment_nickname"
 | 
					        android:id="@+id/ll_comment_nickname"
 | 
				
			||||||
        android:layout_width="0dp"
 | 
					        android:layout_width="0dp"
 | 
				
			||||||
        android:layout_height="wrap_content"
 | 
					        android:layout_height="wrap_content"
 | 
				
			||||||
        android:layout_marginStart="6.7dp"
 | 
					        android:layout_marginStart="6.7dp"
 | 
				
			||||||
        android:fontFamily="@font/gmarket_sans_medium"
 | 
					        android:orientation="horizontal"
 | 
				
			||||||
        android:textColor="@color/color_909090"
 | 
					 | 
				
			||||||
        android:textSize="12sp"
 | 
					 | 
				
			||||||
        app:layout_constraintEnd_toStartOf="@+id/iv_menu"
 | 
					        app:layout_constraintEnd_toStartOf="@+id/iv_menu"
 | 
				
			||||||
        app:layout_constraintStart_toEndOf="@+id/iv_comment_profile"
 | 
					        app:layout_constraintStart_toEndOf="@+id/iv_comment_profile"
 | 
				
			||||||
        app:layout_constraintTop_toTopOf="@+id/iv_comment_profile"
 | 
					        app:layout_constraintTop_toTopOf="@+id/iv_comment_profile">
 | 
				
			||||||
        tools:text="alkfje203" />
 | 
					
 | 
				
			||||||
 | 
					        <TextView
 | 
				
			||||||
 | 
					            android:id="@+id/tv_comment_nickname"
 | 
				
			||||||
 | 
					            android:layout_width="wrap_content"
 | 
				
			||||||
 | 
					            android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					            android:fontFamily="@font/gmarket_sans_medium"
 | 
				
			||||||
 | 
					            android:textColor="@color/color_909090"
 | 
				
			||||||
 | 
					            android:textSize="12sp"
 | 
				
			||||||
 | 
					            tools:text="alkfje203" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <TextView
 | 
				
			||||||
 | 
					            android:id="@+id/tv_secret"
 | 
				
			||||||
 | 
					            android:layout_width="wrap_content"
 | 
				
			||||||
 | 
					            android:layout_height="wrap_content"
 | 
				
			||||||
 | 
					            android:layout_marginStart="8dp"
 | 
				
			||||||
 | 
					            android:background="@drawable/bg_round_corner_3_3_553bb9f1"
 | 
				
			||||||
 | 
					            android:fontFamily="@font/gmarket_sans_medium"
 | 
				
			||||||
 | 
					            android:gravity="center"
 | 
				
			||||||
 | 
					            android:paddingHorizontal="4dp"
 | 
				
			||||||
 | 
					            android:paddingTop="2dp"
 | 
				
			||||||
 | 
					            android:paddingBottom="0dp"
 | 
				
			||||||
 | 
					            android:text="비밀댓글"
 | 
				
			||||||
 | 
					            android:textColor="@color/color_selected_secret"
 | 
				
			||||||
 | 
					            android:textSize="11sp"
 | 
				
			||||||
 | 
					            android:visibility="gone" />
 | 
				
			||||||
 | 
					    </LinearLayout>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <ImageView
 | 
					    <ImageView
 | 
				
			||||||
        android:id="@+id/iv_menu"
 | 
					        android:id="@+id/iv_menu"
 | 
				
			||||||
@@ -44,9 +67,9 @@
 | 
				
			|||||||
        android:fontFamily="@font/gmarket_sans_medium"
 | 
					        android:fontFamily="@font/gmarket_sans_medium"
 | 
				
			||||||
        android:textColor="@color/color_555555"
 | 
					        android:textColor="@color/color_555555"
 | 
				
			||||||
        android:textSize="10.3sp"
 | 
					        android:textSize="10.3sp"
 | 
				
			||||||
        app:layout_constraintEnd_toEndOf="@+id/tv_comment_nickname"
 | 
					        app:layout_constraintEnd_toEndOf="@+id/ll_comment_nickname"
 | 
				
			||||||
        app:layout_constraintStart_toStartOf="@+id/tv_comment_nickname"
 | 
					        app:layout_constraintStart_toStartOf="@+id/ll_comment_nickname"
 | 
				
			||||||
        app:layout_constraintTop_toBottomOf="@+id/tv_comment_nickname"
 | 
					        app:layout_constraintTop_toBottomOf="@+id/ll_comment_nickname"
 | 
				
			||||||
        tools:ignore="SmallSp"
 | 
					        tools:ignore="SmallSp"
 | 
				
			||||||
        tools:text="2시간전" />
 | 
					        tools:text="2시간전" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user