I need to make my custom dialog box as a transparent.
Sample Code :
Dialog dialog;
@Override
protected Dialog onCreateDialog(int id)
{
switch(id)
Use dialog.getWindow().setBackgroundDrawable(null)
to remove the default background.
Here is the doc for reference:
/*** Set the background to a given Drawable, or remove the background. If the * background has padding, this View's padding is set to the background's * padding. However, when a background is removed, this View's padding isn't * touched. If setting the padding is desired, please use * {@link #setPadding(int, int, int, int)}. * * @param d The Drawable to use as the background, or null to remove the * background */