Populate ListView with text and value from strings.xml
<p>I'm new to android and want to populate listview items that have id as value and string as caption.
All I could find searching was that they suggest using string array like:</p>

<pre><code>&lt;string-array name="test"&gt;
      &lt;item&gt;first item&lt;/item&gt;
      &lt;item&gt;second item&lt;/item&gt;
&lt;/string-array&gt;
</code></pre>

<p>What i'm looking for is something like:</p>

<pre><code>&lt;string-array name="test"&gt;
      &lt;item value="1"&gt;first item&lt;/item&gt;
      &lt;item value="2"&gt;second item&lt;/item&gt;
&lt;/string-array&gt;
</code></pre>

<p>just like the <code>option</code> tags of a <code>select</code> in html</p>