优化详情页公告/自定义栏目的初始化显示样式

This commit is contained in:
juntao
2020-05-11 16:40:57 +08:00
parent a3f86ab604
commit 2e05320ddf
2 changed files with 8 additions and 3 deletions

View File

@ -190,6 +190,7 @@ class DescAdapter(context: Context,
viewHolder.binding.gamedetailItemNotice.startWithList(list)
viewHolder.binding.shouldBoundToNextItem = detailEntity.shouldBoundTogetherWithNextItem
viewHolder.binding.shouldBoundToPreviousItem = detailEntity.shouldBoundTogetherWithPreviousItem
viewHolder.binding.executePendingBindings()
updateBoundableContainerBackground(
viewHolder.binding.container,
detailEntity.shouldBoundTogetherWithPreviousItem,
@ -221,6 +222,7 @@ class DescAdapter(context: Context,
viewHolder.binding.customColumn = customColumn
viewHolder.binding.shouldBoundToNextItem = detailEntity.shouldBoundTogetherWithNextItem
viewHolder.binding.shouldBoundToPreviousItem = detailEntity.shouldBoundTogetherWithPreviousItem
viewHolder.binding.executePendingBindings()
val params = viewHolder.binding.container.layoutParams as FrameLayout.LayoutParams
params.bottomMargin = DisplayUtils.dip2px(if (!detailEntity.shouldBoundTogetherWithNextItem) 12f else 0f)
@ -246,6 +248,7 @@ class DescAdapter(context: Context,
linkHintTv = viewHolder.binding.linkHintTv,
linkHintArrowIv = viewHolder.binding.linkHintArrowIv)
viewHolder.binding.customColumn = customColumn
viewHolder.binding.executePendingBindings()
}
//绑定大家都在玩