Dialog

快速初始化materialDialog

new MaterialDialog.Builder(mContext)
                    .title("title")
                    .content("I'm a content")
                    .negativeText("cancel")
                    .negativeColorRes(R.color.colorNegative)
                    .positiveText("ok")
                    .positiveColorRes(R.color.colorPositive)
                    .onPositive(new     MaterialDialog.SingleButtonCallback() {
                            @Override
                            public void onClick(@NonNull MaterialDialog     dialog, @NonNull DialogAction which) {
                            showMsg("click dialog ok");
                            ...
                    }
                })
                .show();
-------------本文结束感谢您的阅读-------------