fix(content): 상세 댓글 border를 반영한다
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
android:id="@+id/layout_creator_channel_community_detail_post"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_feed_card"
|
||||
android:orientation="vertical"
|
||||
android:padding="@dimen/spacing_14">
|
||||
|
||||
@@ -259,6 +258,14 @@
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/view_creator_channel_community_detail_comment_divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="@color/gray_800"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_creator_channel_community_detail_comment_header"
|
||||
style="@style/Typography.Body3"
|
||||
|
||||
@@ -103,6 +103,7 @@
|
||||
</LinearLayout>
|
||||
|
||||
<View
|
||||
android:id="@+id/view_creator_channel_community_comment_divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:layout_marginTop="@dimen/spacing_14"
|
||||
|
||||
Reference in New Issue
Block a user