I tried this Programmatically change the value of a color resource obtained from API response it is working.But we need to set the color for every element with setBackgroundColor() based on id of that element.is there any way to change in colors.xml file
Asked
Active
Viewed 1,630 times
1
-
1can you please more explain what you want ? – Dileep Patel Feb 05 '18 at 08:38
-
can you please post the code? – Uma Achanta Feb 05 '18 at 09:42
-
2Do you want to change the values of colors which resides in colors.xml file? – Jyoti JK Feb 05 '18 at 10:26
-
1Basically, based on configuration on sever properties, I need to change the skin of my android application completely.I got few solutions like with reference of id of element i can change the color. This should be done for every activity/Fragments. Is there any other way to update the colors. – Srini Vasu Feb 05 '18 at 10:31
-
1You can't alter resource files programmatically. – Phantômaxx Feb 05 '18 at 12:22
-
can't we update values files – Uma Achanta Feb 06 '18 at 05:35