I know this is a repost. I had to ask this question because I past question there is not a good solution or backdated answer. I comment there about my problem but no reply.
My question is simple. How can I get name value of string-array?
<string-array name="spinerArray">
<item name="one">First</item>
<item name="two">Second</item>
<item name="three">Third</item>
<item name="four">Fourth</item>
</string-array>
I can get First, Second, Third from above array. But I want one, two, three, fourth also.
There is two question on this.
getResourceEntryName for an array item
how to extract the name attribute from string array?
One accepted answer is
attributes.getValue("name");
But this is not working for me. Can anyone help me please.