Android Borderless Dialog

Alright, I’ll answer my own question. Basically, instead of using AlertDialog.Builder, create a regular Dialog using it’s constructor, and use a suitable theme instead of the default Dialog theme.

So your code would look something like this:

Dialog dialog = new Dialog(this, android.R.style.Theme_Translucent_NoTitleBar);

Hope this helps someone else.

Leave a Comment