滑动以删除listview显示工件

时间:2013-07-11 11:28:51

标签: android listview android-listview artifacts swipe-gesture

我正在尝试实施Chet Haase的滑动删除,但他提供的示例是留下文物和鬼列表视图项,一旦项目数小于填充屏幕的数量。

此外,如果删除提到的背景容器,那么您可以看到更多奇怪的工件。

This image shows the artifacts when you swipe, after removing the background container

This shows the last item being repeated after the second item was removed by swiping

该示例的源代码取自此处:Graphics Geek Dev Bytes

1 个答案:

答案 0 :(得分:1)

尝试实施SwipeListView。它具有您想要的相同功能。

enter image description here