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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -