Xamarin.Forms 拖动列表视图项并显示选项?

Xamarin.Forms drag listview item and show options?

嗨伙计们, 我正在使用 Xamarin.Forms,但我有疑问,我可以在 ListView 中做这样的事情吗?

有可能实现 that.You 必须创建自定义渲染器才能执行您想要的操作。对于 iOS,自定义渲染器将像 post 中那样完成: http://forums.xamarin.com/discussion/comment/56693/#Comment_56693

对于 Android,这会有点棘手,因为滑动列表视图不是本机的,但也许您可以自己实现 OnFling 方法,或者在自定义渲染器中使用像这样的项目: https://github.com/47deg/android-swipelistview

此外,这里有一个 post 可以让您深入了解使用手势识别器制作自定义渲染器: http://arteksoftware.com/gesture-recognizers-with-xamarin-forms/

您也可以使用 SfListView 来实现。 https://help.syncfusion.com/xamarin/sflistview/swiping#swipe-customizations

有运行演示的GIF。