Problem: I'm trying to change the look of an Android application on the fly. Something like, the application starts and receives a set of values from the server. These values are elements that usually go inside colors.xml. I'm looking for this is a way to dynamically change elements inside colors.xml and update it with these new values received from the server. I understand that this is normal, this cannot be done directly. But did anyone find a workaround?
What I want to avoid if possible: I would like to avoid setting color values inside each action of the onCreate () method for each element in this view. If at all possible, I would like to avoid it.
Any thoughts?
source share