7

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?

Community
  • 1
  • 1
Mark
  • 17,887
  • 13
  • 66
  • 93

3 Answers3

15

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.

MH.
  • 45,303
  • 10
  • 103
  • 116
7

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.

0

There is no native code to do that. However, you can check Roman Nurik's sample code here. Google Plus post here

fedepaol
  • 6,834
  • 3
  • 27
  • 34