Programmatically change the value of a color resource obtained from API response
问题 Let's say, on my API call I have a parameter that's called color . Is it possible to edit or modify an existent R.colors.color to assign the color from the API result? As an example: I make a call to my API and it returns green , now I want to load my app with i.e (green Toolbar , green TextView color, etc.), is that possible? My first thought was: Create a item on colors.xml called demo then assign it a default color, then use this demo color wherever I want ( Button , TextView , etc.) Then