编程知识 cdmana.com

QMUIDialog.MessageDialogBuilder Invalid (setable. False)

Need to put .setCancelable(false) Set in the .show() The method will take effect later

as follows :

new QMUIDialog.MessageDialogBuilder(mContext)
        .setCancelable(false)
        .setTitle(" Tips ")
        .setMessage(" Refuse success !")
        .addAction(" determine ", new QMUIDialogAction.ActionListener() {
            @Override
            public void onClick(QMUIDialog dialog, int index) {
                dialog.dismiss();
                finish();
            }
        })
        .show()
        .setCancelable(false);

版权声明
本文为[The dog fluttering in the wind]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201225141936480X.html

Scroll to Top