I am trying to make a dialog with a selector that looks something like this:

I tried using an AlertDialog that contains a ListView, but this gives an ugly black border between the ListView and the bottom gray area. I could use a regular dialog, but I do not want to create a lower gray space manually.
I know that I can subclass AlertDialog, but then I will also need to subclass Builder, and in the end it will be a lot of code for such a small detail. Is there a neat way to do this?
Greetings
android android-dialog android-alertdialog
pgsandstrom
source share