fix:调整福袋飘窗点击跳转区域

This commit is contained in:
Max
2024-01-05 11:20:19 +08:00
parent de6a4fe524
commit 792ad5141c
2 changed files with 8 additions and 4 deletions

View File

@@ -634,7 +634,10 @@ class RoomEffectView @JvmOverloads constructor(
)
}
messageTextView.text = text.build()
roomView.setOnClickListener {
bagImageView.setOnClickListener {
goRoom(noticeInfo.roomTitle, noticeInfo.roomUid)
}
giftImageView.setOnClickListener {
goRoom(noticeInfo.roomTitle, noticeInfo.roomUid)
}
animationPlay = AnimationUtils.loadAnimation(mContext, R.anim.anim_box_notify)
@@ -645,12 +648,12 @@ class RoomEffectView @JvmOverloads constructor(
animationPlay = AnimationUtils.loadAnimation(mContext, R.anim.anim_box_notify_close)
roomView.startAnimation(animationPlay)
},
SHOW_TIME.toLong()
6500
)
binding.flLuckyBagNotify.postDelayed({
playNotifyStateLiveData?.value = false
binding.flLuckyBagNotify.removeView(roomView)
}, CLOSE_TIME.toLong())
}, 7000)
}
private fun showLuckySeaNotify(roomPlayBean: RoomPlayBean) {

View File

@@ -282,10 +282,11 @@ public class AllPlayEffectDialog extends BaseDialog {
private void showLuckyBagNotify(LuckyBagNoticeInfo noticeInfo) {
View roomView = LayoutInflater.from(getContext())
.inflate(R.layout.layout_room_lucky_bag_notify, null);
roomView.setOnClickListener(view -> goRoom(noticeInfo.getRoomTitle(),noticeInfo.getRoomUid()));
ImageView bagImageView = roomView.findViewById(R.id.iv_bag);
bagImageView.setOnClickListener(view -> goRoom(noticeInfo.getRoomTitle(),noticeInfo.getRoomUid()));
ImageLoadUtilsV2.loadImage(bagImageView, noticeInfo.getLuckyBagGiftPic());
ImageView giftImageView = roomView.findViewById(R.id.iv_gift);
giftImageView.setOnClickListener(view -> goRoom(noticeInfo.getRoomTitle(),noticeInfo.getRoomUid()));
ImageLoadUtilsV2.loadImage(giftImageView, noticeInfo.getGiftPic());
TextView messageTextView = roomView.findViewById(R.id.tv_message);
SpannableBuilder text = new SpannableBuilder()