fix(content): 상세 댓글 border를 반영한다

This commit is contained in:
2026-07-12 06:29:50 +09:00
parent 9fdcd49c98
commit eb41506bf4
4 changed files with 13 additions and 3 deletions
@@ -169,6 +169,7 @@ class CreatorChannelCommunityDetailActivity : BaseActivity<ActivityCreatorChanne
}
rvCreatorChannelCommunityDetailComments.isVisible = content.isCommentAvailable
tvCreatorChannelCommunityDetailCommentHeader.isVisible = content.isCommentAvailable
viewCreatorChannelCommunityDetailCommentDivider.isVisible = content.isCommentAvailable
layoutCreatorChannelCommunityDetailInputBar.isVisible = content.isCommentInputVisible
ivCreatorChannelCommunityDetailComment.isVisible = content.isCommentAvailable
tvCreatorChannelCommunityDetailCommentCount.isVisible = content.isCommentAvailable
@@ -34,7 +34,7 @@ class CreatorChannelCommunityCommentAdapter(
}
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
holder.bind(items[position])
holder.bind(items[position], isLastItem = position == items.lastIndex)
}
override fun getItemCount(): Int = items.size
@@ -46,8 +46,9 @@ class CreatorChannelCommunityCommentAdapter(
private val onDeleteClick: (CreatorChannelCommunityCommentUiModel) -> Unit
) : RecyclerView.ViewHolder(binding.root) {
fun bind(item: CreatorChannelCommunityCommentUiModel) {
fun bind(item: CreatorChannelCommunityCommentUiModel, isLastItem: Boolean) {
bindComment(binding, item, onReplyClick)
binding.viewCreatorChannelCommunityCommentDivider.isVisible = !isLastItem
binding.ivCreatorChannelCommunityCommentMore.isVisible = item.canShowMore
binding.ivCreatorChannelCommunityCommentMore.setOnClickListener { anchor ->
showOptionMenu(anchor, item, onModifyClick, onDeleteClick)