• 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.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones