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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -