4

I am trying to implement Chet Haase's swipe to delete, but the example he has provided is leaving artifacts, and a ghost list view item, once the number of items is less than the number to fill the screen.

Also, if you remove the background container mentioned, then you can see more weird artifacts.

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

The source code for the example is taken from here: Graphics Geek Dev Bytes

Ahmad
  • 69,608
  • 17
  • 111
  • 137
Amit
  • 3,952
  • 7
  • 46
  • 80

1 Answers1

1

Try to implement SwipeListView. It has same feature what you want.

enter image description here

Chintan Rathod
  • 25,864
  • 13
  • 83
  • 93
  • 1
    the issue with this is, that this does not bring the other views up(or down) this simply shows another view behind the swiped list. We've done that, the issue is in removing the swiped item with animations. – Amit Jul 11 '13 at 12:29
  • so isn't it possible to modify that code like removing views behind views and simply set background white colored? – Chintan Rathod Jul 11 '13 at 12:32
  • 1
    thats why we came here, to see what modifications have been done, but it seems to be creating some problems, that we have no idea about – Amit Jul 12 '13 at 13:03
  • @ChintanRathod will u please help me in this question will be thankfull to u http://stackoverflow.com/questions/20903545/how-to-call-framelayout-slider-in-diffrent-activties-in-android?noredirect=1#comment31377277_20903545 – Pooja Dubey Jan 04 '14 at 06:27
  • @ChintanRathod please help me in my issue ..please – Pooja Dubey Jan 06 '14 at 04:45