android listview滑动删除就像gmail应用程序一样[重复]

2024-03-23

当项目上的滑动效果删除它时,显示像gmail APP中那样实现ListView? 我尝试使用 ViewPager 作为 ListView 元素,但这不起作用。

Thanks


Roman Nurik from the Android Developer Team created a SwipeToDismiss Listener you can implement, it is open sourced here https://code.google.com/p/dashclock/source/browse/main/src/main/java/com/google/android/apps/dashclock/ui/SwipeDismissListViewTouchListener.java.


Edit
项目现在可以在这个位置使用 -https://github.com/romannurik/android-swipetodismiss https://github.com/romannurik/android-swipetodismiss

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

android listview滑动删除就像gmail应用程序一样[重复] 的相关文章

随机推荐