fix:调整福袋飘窗点击跳转区域
This commit is contained in:
@@ -634,7 +634,10 @@ class RoomEffectView @JvmOverloads constructor(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
messageTextView.text = text.build()
|
messageTextView.text = text.build()
|
||||||
roomView.setOnClickListener {
|
bagImageView.setOnClickListener {
|
||||||
|
goRoom(noticeInfo.roomTitle, noticeInfo.roomUid)
|
||||||
|
}
|
||||||
|
giftImageView.setOnClickListener {
|
||||||
goRoom(noticeInfo.roomTitle, noticeInfo.roomUid)
|
goRoom(noticeInfo.roomTitle, noticeInfo.roomUid)
|
||||||
}
|
}
|
||||||
animationPlay = AnimationUtils.loadAnimation(mContext, R.anim.anim_box_notify)
|
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)
|
animationPlay = AnimationUtils.loadAnimation(mContext, R.anim.anim_box_notify_close)
|
||||||
roomView.startAnimation(animationPlay)
|
roomView.startAnimation(animationPlay)
|
||||||
},
|
},
|
||||||
SHOW_TIME.toLong()
|
6500
|
||||||
)
|
)
|
||||||
binding.flLuckyBagNotify.postDelayed({
|
binding.flLuckyBagNotify.postDelayed({
|
||||||
playNotifyStateLiveData?.value = false
|
playNotifyStateLiveData?.value = false
|
||||||
binding.flLuckyBagNotify.removeView(roomView)
|
binding.flLuckyBagNotify.removeView(roomView)
|
||||||
}, CLOSE_TIME.toLong())
|
}, 7000)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun showLuckySeaNotify(roomPlayBean: RoomPlayBean) {
|
private fun showLuckySeaNotify(roomPlayBean: RoomPlayBean) {
|
||||||
|
@@ -282,10 +282,11 @@ public class AllPlayEffectDialog extends BaseDialog {
|
|||||||
private void showLuckyBagNotify(LuckyBagNoticeInfo noticeInfo) {
|
private void showLuckyBagNotify(LuckyBagNoticeInfo noticeInfo) {
|
||||||
View roomView = LayoutInflater.from(getContext())
|
View roomView = LayoutInflater.from(getContext())
|
||||||
.inflate(R.layout.layout_room_lucky_bag_notify, null);
|
.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);
|
ImageView bagImageView = roomView.findViewById(R.id.iv_bag);
|
||||||
|
bagImageView.setOnClickListener(view -> goRoom(noticeInfo.getRoomTitle(),noticeInfo.getRoomUid()));
|
||||||
ImageLoadUtilsV2.loadImage(bagImageView, noticeInfo.getLuckyBagGiftPic());
|
ImageLoadUtilsV2.loadImage(bagImageView, noticeInfo.getLuckyBagGiftPic());
|
||||||
ImageView giftImageView = roomView.findViewById(R.id.iv_gift);
|
ImageView giftImageView = roomView.findViewById(R.id.iv_gift);
|
||||||
|
giftImageView.setOnClickListener(view -> goRoom(noticeInfo.getRoomTitle(),noticeInfo.getRoomUid()));
|
||||||
ImageLoadUtilsV2.loadImage(giftImageView, noticeInfo.getGiftPic());
|
ImageLoadUtilsV2.loadImage(giftImageView, noticeInfo.getGiftPic());
|
||||||
TextView messageTextView = roomView.findViewById(R.id.tv_message);
|
TextView messageTextView = roomView.findViewById(R.id.tv_message);
|
||||||
SpannableBuilder text = new SpannableBuilder()
|
SpannableBuilder text = new SpannableBuilder()
|
||||||
|
Reference in New Issue
Block a user