I want to change some button colors globally in my code. I cannot seem to fine a way to define a color variable and then assign a color value to that variable.
I tried
You must add attribute type="color" in the color tag:
type="color"
#666666
So, you can use the color in xml file as "@color\menu_background" and also from java code.
"@color\menu_background"