简体   繁体   中英

Swipe left to delete Listview row or Item in android

As I know there is an option to display delete button in a list view, if user swipe the item to left in IOS by default. I want to implement it in android as well. How can I do this? ie is this option available in android as well?

This is not a standard feature, however the EnhandedListView library provides a ListView with swipe-to-dissmiss functionality (in any direction you'd like) and also an undo function. You'll find the library here https://github.com/timroes/EnhancedListView and you can download a demo app from https://play.google.com/store/apps/details?id=de.timroes.android.listviewdemo

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM