How to remove items from a list with swipe gesture like in gmail [duplicate]

浪尽此生 提交于 2019-12-03 00:26:44

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.

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.

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!