fix:修复活动banner没显示问题

This commit is contained in:
zlzw 2022-09-01 14:43:12 +08:00
parent 8b3bfbc0fa
commit 0d93c91e65
2 changed files with 3 additions and 3 deletions

View File

@ -871,7 +871,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
mChatRecyclerView.setLayoutParams(params1); mChatRecyclerView.setLayoutParams(params1);
}); });
mBanner2.setVisibility(View.GONE);
if (fastMsgRecyclerView.getVisibility() == View.GONE) { if (fastMsgRecyclerView.getVisibility() == View.GONE) {
params1.bottomMargin = 0; params1.bottomMargin = 0;
mChatRecyclerView.setLayoutParams(params1); mChatRecyclerView.setLayoutParams(params1);
@ -963,8 +962,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
mBannerList2.add(bannerBean); mBannerList2.add(bannerBean);
} }
} }
if (mBannerList2.size() <= 0) { if (mBannerList2.isEmpty()) {
btn_event2.setVisibility(View.GONE); btn_event2.setVisibility(View.GONE);
mBanner2.setVisibility(View.GONE);
} }
showBanner2(); showBanner2();
} else { } else {

View File

@ -284,7 +284,7 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:scaleType="centerCrop" android:scaleType="fitCenter"
android:src="@drawable/guardian_img_two" android:src="@drawable/guardian_img_two"
android:visibility="visible" android:visibility="visible"
app:autoPlay="true" /> app:autoPlay="true" />