fix(content): 상세 댓글 border를 반영한다
This commit is contained in:
@@ -169,6 +169,7 @@ class CreatorChannelCommunityDetailActivity : BaseActivity<ActivityCreatorChanne
|
|||||||
}
|
}
|
||||||
rvCreatorChannelCommunityDetailComments.isVisible = content.isCommentAvailable
|
rvCreatorChannelCommunityDetailComments.isVisible = content.isCommentAvailable
|
||||||
tvCreatorChannelCommunityDetailCommentHeader.isVisible = content.isCommentAvailable
|
tvCreatorChannelCommunityDetailCommentHeader.isVisible = content.isCommentAvailable
|
||||||
|
viewCreatorChannelCommunityDetailCommentDivider.isVisible = content.isCommentAvailable
|
||||||
layoutCreatorChannelCommunityDetailInputBar.isVisible = content.isCommentInputVisible
|
layoutCreatorChannelCommunityDetailInputBar.isVisible = content.isCommentInputVisible
|
||||||
ivCreatorChannelCommunityDetailComment.isVisible = content.isCommentAvailable
|
ivCreatorChannelCommunityDetailComment.isVisible = content.isCommentAvailable
|
||||||
tvCreatorChannelCommunityDetailCommentCount.isVisible = content.isCommentAvailable
|
tvCreatorChannelCommunityDetailCommentCount.isVisible = content.isCommentAvailable
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class CreatorChannelCommunityCommentAdapter(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
|
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
|
override fun getItemCount(): Int = items.size
|
||||||
@@ -46,8 +46,9 @@ class CreatorChannelCommunityCommentAdapter(
|
|||||||
private val onDeleteClick: (CreatorChannelCommunityCommentUiModel) -> Unit
|
private val onDeleteClick: (CreatorChannelCommunityCommentUiModel) -> Unit
|
||||||
) : RecyclerView.ViewHolder(binding.root) {
|
) : RecyclerView.ViewHolder(binding.root) {
|
||||||
|
|
||||||
fun bind(item: CreatorChannelCommunityCommentUiModel) {
|
fun bind(item: CreatorChannelCommunityCommentUiModel, isLastItem: Boolean) {
|
||||||
bindComment(binding, item, onReplyClick)
|
bindComment(binding, item, onReplyClick)
|
||||||
|
binding.viewCreatorChannelCommunityCommentDivider.isVisible = !isLastItem
|
||||||
binding.ivCreatorChannelCommunityCommentMore.isVisible = item.canShowMore
|
binding.ivCreatorChannelCommunityCommentMore.isVisible = item.canShowMore
|
||||||
binding.ivCreatorChannelCommunityCommentMore.setOnClickListener { anchor ->
|
binding.ivCreatorChannelCommunityCommentMore.setOnClickListener { anchor ->
|
||||||
showOptionMenu(anchor, item, onModifyClick, onDeleteClick)
|
showOptionMenu(anchor, item, onModifyClick, onDeleteClick)
|
||||||
|
|||||||
@@ -46,7 +46,6 @@
|
|||||||
android:id="@+id/layout_creator_channel_community_detail_post"
|
android:id="@+id/layout_creator_channel_community_detail_post"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_feed_card"
|
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="@dimen/spacing_14">
|
android:padding="@dimen/spacing_14">
|
||||||
|
|
||||||
@@ -259,6 +258,14 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</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
|
<TextView
|
||||||
android:id="@+id/tv_creator_channel_community_detail_comment_header"
|
android:id="@+id/tv_creator_channel_community_detail_comment_header"
|
||||||
style="@style/Typography.Body3"
|
style="@style/Typography.Body3"
|
||||||
|
|||||||
@@ -103,6 +103,7 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
|
android:id="@+id/view_creator_channel_community_comment_divider"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_marginTop="@dimen/spacing_14"
|
android:layout_marginTop="@dimen/spacing_14"
|
||||||
|
|||||||
Reference in New Issue
Block a user