What is the best way to do multiple listviews in android?

Posted by Nicos on Stack Overflow See other posts from Stack Overflow or by Nicos
Published on 2010-05-15T05:33:50Z Indexed on 2010/05/15 5:44 UTC
Read the original article Hit count: 168

Filed under:
|
|
|

Hi all, i am writing a software that i have to drill down on content a lot. For example when the program starts a listview is displayed. When user clicks on an item, then a second listview must be displayed. For example:

Select Continent > Select Country > Select State > Select City > Select Address

  1. What is the best way to do this (less memory, faster, easier to code etc)? To create multiple listviews with multiple adapters? Or 1 listview with multiple Adapters? Lists are loaded from an external XML File.

  2. So far i am creating a new adapter and setting it to the listview. How do i create a second listview and after clicking on 1st listview displaying the second one, with animation. Any examples?

  3. Extend my class to ListActivity or Activity?

Best regards and thanks for helping, Nicos

© Stack Overflow or respective owner

Related posts about android

Related posts about listview