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

View File

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