I use AlertDialog.Builder to make a custom dialog using these instructions: http://developer.android.com/guide/topics/ui/dialogs.html#CustomDialog
It works, but my view is inside a black box (the standard dialog frame). This box has padding around its edges, so i cant make it use the full display width.
How can I get rid of the padding? I fetched the layoutparams after the dialog is displayed, and changed all the parameters and flags, nothing helped.
When someone else asked this here on SO, the answer was
builder.setView(dialogView, 0, 0, 0, 0);
but as far as I see, this method doesnt exist, only setView(dialogView).