From 2e05320ddfc499fcb4f936f8c9cb18ca2b67d3eb Mon Sep 17 00:00:00 2001 From: juntao Date: Mon, 11 May 2020 16:40:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E5=85=AC=E5=91=8A/=E8=87=AA=E5=AE=9A=E4=B9=89=E6=A0=8F?= =?UTF-8?q?=E7=9B=AE=E7=9A=84=E5=88=9D=E5=A7=8B=E5=8C=96=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/gh/gamecenter/gamedetail/desc/DescAdapter.kt | 3 +++ app/src/main/res/layout/gamedetail_item_desc_notice.xml | 8 +++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/gh/gamecenter/gamedetail/desc/DescAdapter.kt b/app/src/main/java/com/gh/gamecenter/gamedetail/desc/DescAdapter.kt index 1458f9af65..07bf6a5672 100644 --- a/app/src/main/java/com/gh/gamecenter/gamedetail/desc/DescAdapter.kt +++ b/app/src/main/java/com/gh/gamecenter/gamedetail/desc/DescAdapter.kt @@ -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() } //绑定大家都在玩 diff --git a/app/src/main/res/layout/gamedetail_item_desc_notice.xml b/app/src/main/res/layout/gamedetail_item_desc_notice.xml index 14e480658e..311922b1cb 100644 --- a/app/src/main/res/layout/gamedetail_item_desc_notice.xml +++ b/app/src/main/res/layout/gamedetail_item_desc_notice.xml @@ -16,11 +16,12 @@ + android:paddingTop="12dp"> + android:background="@color/EDEDED" + android:visibility="gone" />