Q:

Is there any way to remove the background of an AlertDialog? 

I'm trying to change the background color of an Android AlertDialog. 
Every post I've seen is about changing the color of the AlertDialog, but not the background behind. 
Any help would be appreciated. 

A:

<style name="MyDialogTheme" parent="Theme. AppCompat. Light. Dialog. Alert">
<item name="android:background">@color/myColor</item>

and then apply it in the Builder constructor:
AlertDialog alertDialog = new AlertDialog. Builder(getContext(), R.style. MyDialogTheme)
    ...
    .create();

for more info see see this post

A:

you can reduce the dim Amount   
dialog.getWindow().setDimAmount(0.5f);

To get a background color you need to make a custom Alert Dialog.