Basically what I'm trying to achieve is to access from code two related resources.
Consider this example, the best solution I can think of to my problem:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="black">⬛</string><color name="black_c">#000000</color>
<string name="white">⬜</string><color name="white_c">#ffffff</color>
</resources>
Given a string N in my code I can access both the second string associated to it (⬛ or ⬜) or the color by adding "_c" to the end of the N string.
So, if N="black" I can use N to retrieve both ⬛ and #000000 (with N + "_c")
Is there a better way to do this? My solution feels a bit hacky. Hope I managed to explain what I'm trying to achieve, thanks!