0

I have a Dialog that I display in my application, but I want to be able to change the semi-transparent black background to be 100% transparent. Like below, the part that grays out the activity behind the dialog, I'd like that to be transparent so that I can see the underlying activity as it, instead of being darkened. Thanks for your help!

enter image description here

raisedandglazed
  • 804
  • 11
  • 29

1 Answers1

1

I was able to achieve my desired result by creating the Dialog and passing a style to its constructor like so...

 Dialog ad = new Dialog(context, R.style.SpinnerDialogDropdown);


<style name="SpinnerDialogDropdown">
    <item name="android:windowFrame">@null</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:windowIsFloating">true</item>
    <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
    **<item name="android:backgroundDimEnabled">false</item>**
</style>
raisedandglazed
  • 804
  • 11
  • 29