如何删除列表中的项目与轻扫手势就像在Gmail中 [英] How to remove items from a list with swipe gesture like in gmail
本文介绍了如何删除列表中的项目与轻扫手势就像在Gmail中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
Android的刷卡删除列表行
我想实施的项目和刷卡左>右的项目,应删除,如Gmail的列表。已经在Android原生的一些元素来开发这样的名单?
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?
推荐答案
没有原生API直接从Android的,但这里是第三级的API拖排序列表视图的extendes默认的列表视图
No native api direct from android, but here is third level api "drag-sort-listview" that extendes the default listview
<一个href="https://github.com/bauerca/drag-sort-listview">https://github.com/bauerca/drag-sort-listview
和原料药有上轻扫手势删除选项。
and the api has a remove option on swipe gesture.
这篇关于如何删除列表中的项目与轻扫手势就像在Gmail中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文