0

Hy guys, I'm working with Xamarin.Forms and I have a doubt, could I do something like this in a ListView?

Delete Item from list View on left drag

notarealgreal
  • 734
  • 16
  • 29

1 Answers1

1

It is possible to achieve that.You will have to create custom renderers in order to do what you want. For iOS, the custom renderer would be done like in this post: http://forums.xamarin.com/discussion/comment/56693/#Comment_56693

For Android, it would be a little trickier as swiping listviews is not native, but perhaps you would either implement the OnFling method on your own, or maybe use a project like this one in a custom renderer: https://github.com/47deg/android-swipelistview

Also, here is a post that gives some insight into making custom renderers with gesture recognizers: http://arteksoftware.com/gesture-recognizers-with-xamarin-forms/

You also could used SfListView to achieve that. https://help.syncfusion.com/xamarin/sflistview/swiping#swipe-customizations

There is GIF of running demo.

enter image description here

Leon
  • 8,404
  • 2
  • 9
  • 52