I have a set of views that I need to present in a list-like manner. Every view is rather complicated, but each is a clone of the previous, just with different data. Now, there is a lot of data on any given view, so is a ListView/ListActivity still the right thing to use here? Or are those only intended for simple views that show just one or two text items?

1 Answer
1

ListViews can be used to display complex views as you seem to have. However, ListViews are especially useful if you don't know the number of views to display until runtime and have some datastore behind that is being displayed.

If you have a fixed number of views to display, a FrameLayout or other ViewGroup might be a better choice.

Ah, I suppose that answers the question then. However, I'm not yet going to throw down that green checkmark just yet, because I'm still confused. I do indeed have a datastore, and not a fixed dataset. But I've been hunting around the android docs, and I can't find a single scrap of information on doing anything with a ListView other than displaying rows with predefined things like android.R.layout.simple_list_item_1, android.R.layout.simple_list_item_2, android.R.layout.two_line_list_item. Are there any guides for this sort of thing, or are you basically on your own?
–
patrick-rutkowskiOct 2 '11 at 23:07