diff --git a/common/src/main/java/com/yunbao/common/dialog/DragonRuleConfirmPopup.java b/common/src/main/java/com/yunbao/common/dialog/DragonRuleConfirmPopup.java index 3eefa2413..e2d8d1711 100644 --- a/common/src/main/java/com/yunbao/common/dialog/DragonRuleConfirmPopup.java +++ b/common/src/main/java/com/yunbao/common/dialog/DragonRuleConfirmPopup.java @@ -1,6 +1,7 @@ package com.yunbao.common.dialog; import android.content.Context; +import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; @@ -14,9 +15,10 @@ import com.yunbao.common.utils.WordUtil; import com.yunbao.common.views.weight.ViewClicksAntiShake; public class DragonRuleConfirmPopup extends CenterPopupView { - TextView text_1; - TextView text_2; - TextView text_3; + private TextView text_1; + private TextView text_2; + private TextView text_3; + private ImageView closed_iv; private String mLiveUid; private int mGoldMoney;// 總數 private int mMoney;// 輸入的 @@ -44,11 +46,18 @@ public class DragonRuleConfirmPopup extends CenterPopupView { text_1 = findViewById(R.id.text_1); text_2 = findViewById(R.id.text_2); text_3 = findViewById(R.id.text_3); + closed_iv = findViewById(R.id.closed_iv); text_1.setText(String.format(WordUtil.getString(R.string.dialog_jin_dou_1), mMoney)); text_2.setText(String.format(WordUtil.getString(R.string.dialog_jin_dou_2), (mMoney/10))); text_3.setText(String.format(WordUtil.getString(R.string.dialog_jin_dou_3), mGoldMoney-mMoney)); + ViewClicksAntiShake.clicksAntiShake(closed_iv, new ViewClicksAntiShake.ViewClicksCallBack() { + @Override + public void onViewClicks() { + dismiss(); + } + }); ViewClicksAntiShake.clicksAntiShake(findViewById(R.id.btn_confirm), new ViewClicksAntiShake.ViewClicksCallBack() { @Override diff --git a/common/src/main/res/layout/dragon_rule_popup_3.xml b/common/src/main/res/layout/dragon_rule_popup_3.xml index 8bf28339f..1b9b516cd 100644 --- a/common/src/main/res/layout/dragon_rule_popup_3.xml +++ b/common/src/main/res/layout/dragon_rule_popup_3.xml @@ -15,6 +15,16 @@ android:scaleType="fitXY" android:src="@mipmap/background_dragon_rule" /> + + = 1000) { // 显示确认弹窗 new XPopup.Builder(getContext()) + .dismissOnTouchOutside(false) + .dismissOnBackPressed(false) .asCustom(new DragonRuleConfirmPopup(getContext(),goldMoney,money,mLiveUid)) .show(); dismiss();