I\'m trying to make a custom dialog to show a view in this dialog. This is the Builder code:
//Getting the layout LayoutInflater inflater = (LayoutInflater)
Use AlertDialog instance e.g. mAlertDialog as a global variable. And call mAlertDialog.dismiss(); inside onClick()
AlertDialog
mAlertDialog
mAlertDialog.dismiss();
onClick()