title: Android Resource - Array of Arrays
body: <p>I am trying to implement a resource data structure that includes an array of arrays, specifically strings.  The issue I run into is how to get the sub-array objects and their specific values.  Here is what my resource file looks like....</p>
  
  <pre><code>&lt;resources&gt;
     &lt;array name="array0"&gt;
       &lt;item&gt;
         &lt;string-array name="array01"&gt;
           &lt;item name="id"&gt;1&lt;/item&gt;
           &lt;item name="title"&gt;item one&lt;/item&gt;
         &lt;/string-array&gt;
       &lt;/item&gt;
       &lt;item&gt;
         &lt;string-array name="array02"&gt;
           &lt;item name="id"&gt;2&lt;/item&gt;
           &lt;item name="title"&gt;item two&lt;/item&gt;
         &lt;/string-array&gt;
       &lt;/item&gt;
       &lt;item&gt;
         &lt;string-array name="array03"&gt;
           &lt;item name="id"&gt;3&lt;/item&gt;
           &lt;item name="title"&gt;item three&lt;/item&gt;
         &lt;/string-array&gt;
       &lt;/item&gt;
     &lt;/array&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>Then, in my Java code I retrieve the array and try to access the sub elements like so...</p>
  
  <pre><code>TypedArray typedArray = getResources().obtainTypedArray(R.array.array0);
  
  TypedValue typedValue = null;
  
  typedArray.getValue(0, typedValue);
  </code></pre>
  
  <p>At this point the typedArray object should represent the string-array "array01", however, I don't see how to retrieve the "id" and "title" string elements.  Any help would be appreciated, thanks in advance.</p>