优化详情页公告/自定义栏目的初始化显示样式
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
||||
//绑定大家都在玩
|
||||
|
||||
Reference in New Issue
Block a user