Issue
I've made a string array in my array.xml:
<string-array name="question1">
<item value="1">A</item>
<item value="0">B</item>
<item value="0">C</item>
<item value="0">D</item>
Now I would like to get the value of that array into my java file. How can I access this value? Or isn't this possible?
Thanks in advance.
Solution
The docs say that StringArray does not define any item attributes. In your case "value" is an attribute.
Here's the reference: http://developer.android.com/guide/topics/resources/string-resource.html#StringArray
Answered By - Jim
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.