fix(content): 상세 댓글 border를 반영한다
This commit is contained in:
+1
@@ -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
|
||||
|
||||
+3
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user