刷卡ListView项由右至左秀删除按钮 [英] Swipe ListView item From right to left show delete button

查看:195
本文介绍了刷卡ListView项由右至左秀删除按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义的ListView显示的话,从数据库中选择的列表。当我刷卡此列表视图项我想告诉像下面的图像删除按钮。当我preSS的按钮,它是从数据库中删除,并刷新列表视图。 米

I have a custom ListView showing the list of words selecting from database. When I swipe this listview item i want to show Delete button like image below. And when I press that button it is deleted from Database and refresh the listview. m

我已经看在此示例code <一个href="http://stackoverflow.com/questions/12713926/showing-a-delete-button-on-swipe-in-a-listview-for-android">here.但它仍然无法正常工作。

I already look in this sample code here. But it still does not work.

推荐答案

有一个在<一个一个不错的库href="https://github.com/47deg/android-swipelistview">https://github.com/47deg/android-swipelistview您可以使用=)

there's a nice library in https://github.com/47deg/android-swipelistview you could use =)

编辑:

我最近发现,可以解决你的问题,其他图书馆: <一href="https://github.com/daimajia/AndroidSwipeLayout">https://github.com/daimajia/AndroidSwipeLayout

i recently found other library that could solve your issue: https://github.com/daimajia/AndroidSwipeLayout

这篇关于刷卡ListView项由右至左秀删除按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆