Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dialog #455

Closed
myfGitup opened this issue Jul 25, 2024 · 2 comments
Closed

dialog #455

myfGitup opened this issue Jul 25, 2024 · 2 comments
Labels
bug Something isn't working 等待反馈 存疑或问题需要进一步确认

Comments

@myfGitup
Copy link

myfGitup commented Jul 25, 2024

No description provided.

@myfGitup myfGitup added the bug Something isn't working label Jul 25, 2024
@myfGitup myfGitup changed the title 自定义dialog 布局,设置的遮罩层颜色,然后设置点击遮罩层弹窗消失,点击事件不走,不响应 dialog Jul 25, 2024
@kongzue kongzue added the 待处理 已收到,待处理 label Jul 31, 2024
@kongzue
Copy link
Owner

kongzue commented Jul 31, 2024

很抱歉未能了解您遇到的问题。
针对遮罩层的点击事件,经过测试不存在问题。
image
请尝试运行如下代码进行测试,可以看到在点击遮罩层后log 顺利打印:

CustomDialog.show(new OnBindView<CustomDialog>(R.layout.layout_custom_dialog) {
            @Override
            public void onBind(final CustomDialog dialog, View v) {
                ImageView btnOk;
                btnOk = v.findViewById(R.id.btn_ok);
                btnOk.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        dialog.dismiss();
                    }
                });
            }
        })
        .setMaskColor(getColorS(com.kongzue.dialogx.R.color.black50))
        .setOnBackgroundMaskClickListener(new OnBackgroundMaskClickListener<CustomDialog>() {
            @Override
            public boolean onClick(CustomDialog dialog, View v) {
                log("点击遮罩层");
                return false;
            }
        })
        .setMaskColor(getResources().getColor(com.kongzue.dialogx.iostheme.R.color.black30))

@kongzue kongzue added 等待反馈 存疑或问题需要进一步确认 and removed 待处理 已收到,待处理 labels Jul 31, 2024
@stale stale bot removed the 等待反馈 存疑或问题需要进一步确认 label Jul 31, 2024
@kongzue kongzue added the 等待反馈 存疑或问题需要进一步确认 label Aug 7, 2024
Copy link

stale bot commented Aug 14, 2024

长时间未收到回复暂时关闭了此问题,若有疑问请继续回复。此消息来自于自动化 Issues 处理 Bot,若问题严重或紧急你也可以通过反馈群联系到我:590498789

@stale stale bot closed this as completed Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 等待反馈 存疑或问题需要进一步确认
Projects
None yet
Development

No branches or pull requests

2 participants