When Android AlertDialog
shows, the background around this dialog becomes darker. This is probably achieved by first filling the whole screen with a half-transparent color and then putting a dialog on top of that.
My question is: what is the default color of that background fill?
#88666666 //looks close, but not enough
For future readers:
What question author calls dialog background fill is called Scrim in Material Design spec.
So the scrim color according to Material Design Spec is
Color : #000000
Opacity : 32%
<color name="background">#52000000</color>
If you check the AppCompat's Dialog I believe it is using:
<color name="dim_foreground_disabled_material_dark">#80bebebe</color>
<color name="dim_foreground_disabled_material_light">#80323232</color>
However on my own testing I think it's #99000000
(black at 62 % opacity)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With