I am working on android application and i want to create Renderer in xamarin forms for swipe the items of ListView. But i don't know how swipe will work. If any body have any idea please share with me Here is my code:-
public class NativeCell : ViewCell
{
}
here is code of Renderer:-
[assembly: ExportRenderer(typeof(ViewCell), typeof(CustomViewCell))] namespace SwipeListItemRenderer.Droid.CustomControls {
public class CustomViewCell : ViewCellRenderer
{
protected override Android.Views.View GetCellCore(Cell item, Android.Views.View convertView, ViewGroup parent, Context context)
{
var cell= base.GetCellCore(item, convertView, parent, context);
cell.GenericMotion += Cell_GenericMotion;
return cell;
}
private void Cell_GenericMotion(object sender, GenericMotionEventArgs e)
{
}
} }
I have build the renderer for ViewCell of listview, I want to swipe item left to right that that i want to fire gesture event:-
private void Cell_GenericMotion(object sender, GenericMotionEventArgs e)
{
}