I am developing an application with a shop list in a listview. I need that when I swipe the item of listview to the right(or left), this item should get deleted
Another option you should consider is to use Tim Roes's EnhancedListView library. [Update - 8/1/2015] With the introduction of RecycleView this library has been deprecated.
The aforementioned Roman Nurik's SwipeToDismiss listener requires API level 12 or higher. Jake Wharton ported this code to support all API levels in SwipeToDismissNOA.
Tim Roes extended this library further to support Undo feature as well.