1:修改马迎新春的弹框提示,展示背景

This commit is contained in:
2026-01-30 14:25:45 +08:00
parent 48506a075e
commit 88ce3ac161
12 changed files with 158 additions and 119 deletions

View File

@@ -6,6 +6,7 @@ import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.Handler;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
@@ -86,6 +87,8 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
private static final int AUTO_SCROLL_DELAY = 1000; // 1秒滚动一个item
private boolean vCheckbox=false;
private Dialog dialog;
@Override
protected GiftLotteryPresenter bindPresenter() {
return new GiftLotteryPresenter(this, getActivity());
@@ -107,9 +110,10 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
@Nullable
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
Dialog dialog = super.onCreateDialog(savedInstanceState);
dialog = super.onCreateDialog(savedInstanceState);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setCancelable(true);
dialog.setCanceledOnTouchOutside(true);
return dialog;
}
@@ -268,6 +272,7 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
prepareForNewLottery();
num = "1";
MvpPre.xlhChou(roomId, num);
} else {
// com.hjq.toast.ToastUtils.show("正在抽奖中...");
}
@@ -322,6 +327,12 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
vCheckbox=mBinding.vCheckbox.isSelected();
}
if (isDrawing){
dialog.setCancelable(false);
dialog.setCanceledOnTouchOutside(false);
}
// 通过 ID 获取资源名称
String viewName = "";
try {
@@ -1011,6 +1022,8 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
*/
private void showResultDialog(List<XlhDrawBean> data) {
isDrawing = false;
dialog.setCancelable(true);
dialog.setCanceledOnTouchOutside(true);
// 创建并显示对话框
// 关闭之前可能存在的对话框
// if (xlhObtainDialog != null && xlhObtainDialog.isShowing()) {
@@ -1023,6 +1036,7 @@ public class TourClubDialogFragment extends BaseMvpDialogFragment<GiftLotteryPre
@Override
public void onPlayAgainClick() {
isDrawing = true;
// 处理再玩一次点击事件
MvpPre.xlhChou(roomId, num);
}