Having this attrs.xml file:
<resources>
<attr name="customColorPrimary" format="color" value="#111111"/>
</resources>
It is possible to write with java code a new value for that color?
Can't find how to do it in the official documentation...
It is possible to write with jav" /> It is possible to write with jav" /> It is possible to write with jav"/>
Having this attrs.xml file:
<resources>
<attr name="customColorPrimary" format="color" value="#111111"/>
</resources>
It is possible to write with java code a new value for that color?
Can't find how to do it in the official documentation...
Copyright © 2021 Jogjafile Inc.
Short answer: No.
Long answer: All
resourcesyou use in your code are compiled as contents ofRclass. Every singleresource(includingstring,dimen,layout,style,attrand other) is compiled as some variation ofpublic staticfinalintvalues. That's why you can't modify it during runtime.