I was looking through some apps in android like the gdocs, catch apps for android. They have a list view where they display the list of all items. However they also have a swipe action where if you swipe to left or right it takes you to a filtered list of items. I mean if the user is in the main list of all documents, and if he swipes left he can go to the favorite list of items, and if he swipes back right he can go back to the complete list of items.
Does anyone know how is this implemented? Is it done using only one listview, or is it done by many list view? As far as I know it is difficult to have more than one listview in a activity, If tried to have more than one there are some serious force closes happening in my app. Is it really possible to have two listviews in a single activity? Does anyknow know about it? Is there any sample that is having a similar implementation? I would like to see a sample where the swipe left and swipe right takes them to a different list view with in the same activity. The animation looks as if the swipe left and swipe right is done using a view flipper. Please let me know if anyone know any kind of details about this. It would be very helpful for me. Thank you in advance for your time and advice.
Yes, you can have multiple ListViews in one activity without serious problems :).
Such kind of apps, as far as I can guess, implement it with a ViewFlipper with swipe actions and some animations of course.
Here is an example.
http://android-codes-examples.blogspot.com/2011/03/multiple-listview-and-custom-listview.html