Possible Duplicate:
android swipe to delete list row
I want to implement a list of items and on swiping left->right the item should be remove, like a Gmail. Has Android some native Elements to develop such list?
Possible Duplicate:
android swipe to delete list row
I want to implement a list of items and on swiping left->right the item should be remove, like a Gmail. Has Android some native Elements to develop such list?
Roman Nurik posted some beta code implementing this feature a couple of months ago. Caveat is that it's only compatible for ICS+ devices. Fortunately, Jake Wharton backported the code soon after publication, using the NineOldAndroids library.
The latter provides a sample APK too, in case you feel like having a play with the result first.
No native api direct from android, but here is third level api "drag-sort-listview" that extendes the default listview
https://github.com/bauerca/drag-sort-listview
and the api has a remove option on swipe gesture.