I\'m trying to get the background of a DialogFragment to be completely clear.
With setting the style item android:windowIsFloating to true
You need to get a handle to your DialogFrament (sometime after .show is called), and do this in a Posted Runnable:
DialogFragment dialog;
...
WindowManagerLayoutParams wlp = dialog.Dialog.Window.Attributes;
wlp.Flags &= ~WindowManagerFlags.DimBehind;
dialog.Dialog.Window.Attributes = wlp;
I got it from Aleks G's answer to Changing position of the Dialog on screen android .