> Resources cannot be modified at runtime.
>
> However, there is nothing preventing you from creating a
> getCustomColor() method somewhere that looks for your override value
> and returns it, otherwise returning the color resource value.

But then I would need to set all my colors at runtime. Is there no way
to override the colors defined in the colors.xml with another resource
set? I tried reading up on Themes but I couldn't quite figure out if I
could override background colors on specific views.

What I would like is to set a theme on specific views and then
override the background colors by changing the theme but that didn't
seem possible (and I am sure there is a good reason for that).

So maybe I should just set the colours in code and be done with it :-)

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to