Remove item listview with Slide - Like Gmail

前端 未结 4 1429
北恋
北恋 2020-12-23 02:51

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

4条回答
  •  死守一世寂寞
    2020-12-23 03:17

    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.

提交回复
热议问题