Reputation: 175
How to gathering 2 rows of list to be 1 row for call Context Menu
Does anybody have some demo?
Thanks in advance.
Upvotes: 0
Views: 296
Reputation: 46844
It sounds like all you need a ListView
with a complex layout for each list view item.
Lots of options. Create a layout file with the two row layout that you want. Then, either use a SimpleAdapter, or use an ArrayAdapter and override the [getView][3] function to fill in the details.
If you search on any of those terms, you should find plenty of tutorials.
[3]: http://developer.android.com/reference/android/widget/ArrayAdapter.html#getView(int, android.view.View, android.view.ViewGroup)
Upvotes: 1