I want to modify the value of a color in colors.xml, such as
<color name="colorPrimary">#3D3D3D</color>. I want to change this using Java programatically so I can modify this while the app is running.
I have tried things like R.color.colorPrimary = "#FFFFFF"; but this throws an incompatable types error because R.color.primary must be set to a int, not a String.
How do I change the colors.xml data using Java?
color.xmlat runtime