I want to remove the black background on custom dialog as shown in the picture. I\'m sure the black background was from the dialog, not from app\'s background.
you can create xml layout like following and set that layout on dialog(dialog.xml) :
here is the code to set layout on alert dialog :
AlertDialog alert = cndtnsbuilder.create(); alert.setView(LayoutInflater.from( currentactivity.this).inflate( R.layout.dialog, null)); alert.show();