I find that using transparent activity and startActivityForResult () gives me complete freedom as I want my βdialogueβ to look and behave. Therefore, I suggest you check: How to create transparent activity on Android?
With full screen and dark background of your choice:
<style name="Theme.Transparent" parent="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"> <item name="android:windowBackground">@color/transparentActivityBackground</item> </style>
Then in strings.xml:
<color name="transparentActivityBackground">#55000000</color>
If you want to blur the screen of a previous operation, use this line before setting SetContentView:
this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
Lumis source share