Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android swipe to delete list row

so i've done some searching but haven't found a good answer. anyone who's familiar with android 4.0 knows the fancy swipe to remove running apps. i'm trying to implement this into a dynamic list.

when i say dynamic, it's a list being built with a base adapter and holder's.

i'm wondering if anyone has a good example of how to implement this swipe feature into a dynamic list. i want it to have the fancy animation and everything of the list collapsing back together after an element is removed. but, for now, i'm looking for a good starting point on how to properly implement this.

any and all help is always appreciated. thanks all!

like image 862
user1457114 Avatar asked Jun 14 '12 20:06

user1457114


1 Answers

SwipeListView is an excellent ListView extension that does this. A demo application is also available on Google Play here: https://play.google.com/store/apps/details?id=com.fortysevendeg.android.swipelistview

like image 126
Jim Vitek Avatar answered Oct 20 '22 17:10

Jim Vitek