I have created an AlertDialog using AlertDialog.Builder, but the Dialog border takes up too much space on the screen. How do I remove the border? I have tried using another
In your resources file create a xml file named for e.g. null_image.xml, with the following content:
In your java code, fetch the dialog window and set the xml file as the drawable resource, like this: Depending on your context:
Dialog dialog = new Dialog(getContext());
Window window = dialog.getWindow();
window.setBackgroundDrawableResource(R.drawable.null_image);
That's it, enjoy.