The only thing I can change to change the background is the android: backgroundDimEnabled and android: backgroundDimAmount settings (to fully enable / disable background dimming and to control the amount of background dimming, respectively)
To change these values, create (or edit) the res / values ββ/ styles.xml file with the following
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.ControlledDim" parent="android:Theme"> <item name="android:backgroundDimAmount">0.2</item> </style> </resources>
And apply this theme in the activity manifest by setting the theme to
@ style / Theme.ControlledDim
This may not provide as much control as you want, but hopefully a step in the right direction.
(The default value for android: backgroundDimAmount is 0.6)
source share