XML : reference string array res id from an array

I have the following XML

  <string-array name="str_arr1">    <item>My item 1</item>    <item>My item 2</item>    <item>My item 3</item>  </string-array>    <string-array name="str_arr2">    <item>My item 4</item>    <item>My item 5</item>    <item>My item 6</item>  </string-array>    

How can I reference the above strings arrays using an array.. something like below (maybe another type of array needs to be used?)

  <string-array name="my_strings_arrays">    <item>R.array.str_arr1</item>    <item>R.array.str_arr2</item>  </string-array>    

Basically in the code, I want to read the my_strings_arrays and then for each array , I want to grab the list of items within.

No comments:

Post a Comment