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.
Try this:
myDialog.getWindow().clearFlags(LayoutParams.FLAG_DIM_BEHIND);