Android - Adding Subitem to a listview
Posted
by
Oli
on Stack Overflow
See other posts from Stack Overflow
or by Oli
Published on 2011-01-03T18:51:20Z
Indexed on
2011/01/03
18:54 UTC
Read the original article
Hit count: 290
I currently have a listview which contains a couple of strings. These are called from a string array in strings.xml
<string name="app_name">Taxi Me</string>
<string-array name="taxi_array">
<item>Barrys Taxi</item>
<item>Boom Taxi</item>
</string-array>
What i was trying to do is create subitems for these so that i can show fields such as address and contact details etc. I made a customlistview a while back but cant work out how i can do it using the strings.xml file? Are there any particular tags i need to use so they show up in the list view?
Any help would be greatly appreciated.
Thanks
© Stack Overflow or respective owner