How to tell what the Android menu color is -
i have seen questions ask changing android menu background color. not want this, want determine if menu dark or light , show different icon accordingly.
how can tell if android menu background dark or light?
this question has been described before. , here answers: this , this (by wiseman)
edit:
didn't try myself may following code:
gettheme().obtainstyledattributes(android.r.attr.windowbackground); it returns typedarray can obtain value of attribute somehow.
Comments
Post a Comment