Skip to content Skip to sidebar Skip to footer

Android - Using Swipeview For An Entire Listview

I've seen several examples (here) of SwipeViews that are implemented on a ListView, but these are for individual items on the list and not for the ListView itself. In my app, an in

Solution 1:

I recomend to use a library like this one https://github.com/xenione/SwipeLayout and don't try to do it on your own. AND please avoid to use ListView use RecyclerView instead.

Solution 2:

I think you are looking for a ViewPager. In which case you would not need to create more xml files (unless you want the list items in each list to look different), but you will need to create some Fragments. In this way, you can create a new Fragment for each list, and the ViewPager will handle the swipe gesture to go back and forth between the two.

Solution 3:

Instead, I decided to get rid of the ListView and use ScrollView instead. There is more flexibility in what I can do. Furthermore, I can scroll and swipe, too. Listview doesn't do that and it is not an item click. Thank you for the two guys that contributed though.

Post a Comment for "Android - Using Swipeview For An Entire Listview"