Complex ListView example with complex data and complex layout of each row?
android, layout, listview
Solution
An example that helped me a lot:
http://android-developers.blogspot.com/2009/02/android-layout-tricks-1.html
I hope this would be useful to you too.
Problem
Im pulling a list of product objects from a database call and I want to build a ListView of the data in my activity with a non-scrolling header and footer. Each row will consist of a product thumbnail, some data and a button arranged horizontally. I understand that using the ListView I can inflate each row using a separate layout. Most of the examples Ive seen using ListView just show a simple array of strings that fill the whole view of the activity, but most real-world examples will be more complex and I can't find any good examples that explain how all these pieces fit together. Does anyone have any pointers to sample code with a good explanation ?