You can use setTheme (android.R.style.Theme_Translucent)
But remember about yourself:
Define a base theme for this context. Please note that this must be called before any views are created in the Context (for example, before calling setContentView (View) or bloating (int, ViewGroup)).
A source
user658042
source share