Search..

Thursday, July 30, 2020

how to add custom dialog box

mDialog = new Dialog(this);
mDialog.setContentView(R.layout.project_layout);
mDialog.setCancelable(true);

mDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
mDialog.show();

No comments:

Post a Comment