android - How to change a Dialog's background overlay color -
i want change overlay color of dialog. first comes transparent gray.
i tried:
<item name="android:windowcontentoverlay">@color/customcolor</item> <item name="android:colorbackgroundcachehint">@color/customcolor</item>
they did not work. when tried:
<item name="android:windowbackground">@color/customcolor</item>
the content background changing.
i found 1 rule solution!
d.getwindow().setbackgrounddrawableresource(r.drawable.menubackground);
it works me normal dialog. dont know if works on alertdialog
.
Comments
Post a Comment