• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Transferring colors from c++ to xml

How do I transfer color hex values from native c++ to xml? I want to have changeable colors in panels that are being changed by c++ code. Since the app gui is xml, I need to change colors in the xml from c++. If there is a way to change colors using rgb values, that would be useful too.
 
Development thread moved to the dev area for better exposure. It was in a channel for an app called Android Developers that probably wouldn't get the visibility you need. Good luck!! :)
 
for example

<color name="transparent_white_overlay">#EEFFFFFF</color>
<color name="lighter_gray">#AAAAAA</color>
<color name="very_light_gray">#EEEEEE</color>
<color name="disabled_text">#CCCCCC</color>
 
Back
Top Bottom