Reputation: 125
I have a program that I would like to display the name and house number of a group of people. This information is being picked up from a web server and is all sorted (xml format) but I wanted it to be displayed in a ListView with the two different pieces of information in a single list item. When getting the information from the server there may be 3 people there may be 30 so a list view where it extends with the amount of information there is is essential. Any ideas?
Upvotes: 0
Views: 132
Reputation: 9189
Consider using an ExpandableListView it allows you to have custom "sub-data" under each list item.
Upvotes: 1
Reputation: 850
You would create a ListView and set your own customized ListAdapter that will display the two pieces of information you need in a single list item
Upvotes: 2