Is it possible to have attributes on listviews something like:-
<string-array name="arr_sats">
<item id="0101">Sat 1</item>
<item id="0201">Sat 2</item>
</string-array>
Then on the click event get the value of 'id'?
Is it possible to have attributes on listviews something like:-
<string-array name="arr_sats">
<item id="0101">Sat 1</item>
<item id="0201">Sat 2</item>
</string-array>
Then on the click event get the value of 'id'?
onClick gives you a position. With that position, you can fetch the Item and thus have the id.
onItemClick will give you position, then you have to parse xml and get the attribute of that position. See the following URL how to get 'name' attribute of item of string-array