I've got a string-array
<string-array name="color">
<item>red</item>
<item>green</item>
<item>purple</item>
</string-array>
How could I get it's name with Java? (I want to get a string with "color" inside)
How to I extract it's name to a string? To do smth like this:
<string-array name="@string/color"> <item>red</item> <item>green</item> <item>purple</item> </string-array>
<string name="color">color</string>
Is it redudant to extract all items of a string-array to strings? like this:
<string-array name="color"> <item>@string/red</item> <item>@string/green</item> <item>@string/purple</item>
<string name="red">red</string> <string name="green">green</string> <string name="purple">purple</string>