Android, how to display a list of objects, one per page? -


i need implement android viewer display list of results (from real estate site web query), have in list property (

private list<estate> estateslist; 

)

for each item have 1 image, 1 description, 1 phone number (and more text fields). app display each result, 1 per page, , display next (or previous) 1 on "swipe" (or "fling"?) gesture user.

the question is: right approach? should use "listactivity"? if so, how bind objects list? or should better use listview?

a listactivity special kind of activity contains listview. basically, listactivity provide easier api build activity around listview. nevertheless, class bit useless , tends less interesting on long run. should better use normal activity (i mean build own class extends activity) , add listview in it.

you should learn how use listadapter feed listview data (the list model in mvc). got 2 main alternatives : using memory adapter, or use cursoradapter pick data directly database.

there many tutorials on web start learning listviews. this one, among many many others.

regards, steff


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -