礼物增加空的布局

This commit is contained in:
ningwenqiang 2024-09-27 14:31:08 +08:00
parent ea558cb22f
commit de9901707c
2 changed files with 11 additions and 3 deletions

View File

@ -156,7 +156,15 @@
app:layout_constraintDimensionRatio="1.56" app:layout_constraintDimensionRatio="1.56"
app:layout_constraintStart_toStartOf="parent" /> app:layout_constraintStart_toStartOf="parent" />
<View
android:id="@+id/emptyBg"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="#ff171724"
app:layout_constraintTop_toTopOf="@+id/giftRecyclerView"
app:layout_constraintBottom_toBottomOf="@+id/giftRecyclerView"
app:layout_constraintStart_toStartOf="@+id/giftRecyclerView"
app:layout_constraintEnd_toEndOf="@+id/giftRecyclerView"/>
<ImageView <ImageView
android:id="@+id/emptyImg" android:id="@+id/emptyImg"
@ -185,7 +193,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:visibility="gone" android:visibility="gone"
app:constraint_referenced_ids="emptyImg,emptyTv" app:constraint_referenced_ids="emptyBg,emptyImg,emptyTv"
tools:visibility="visible" /> tools:visibility="visible" />
<!--礼物列表无数据时候 --> <!--礼物列表无数据时候 -->

View File

@ -372,7 +372,7 @@ public class LiveGiftPopup2 extends AbsDialogFragment {
// liveGiftModel= mWrapGiftList.get(0); // liveGiftModel= mWrapGiftList.get(0);
hideLianBtn(); hideLianBtn();
}else { }else {
emptyGroup.setVisibility(View.INVISIBLE); emptyGroup.setVisibility(View.VISIBLE);
Log.i("LiveGiftPopup2", "包裹为空"); Log.i("LiveGiftPopup2", "包裹为空");
} }