0
我在android应用程序上工作,我想在xamarin表单中创建用于滑动ListView项目的Renderer。但我不知道如何刷卡将工作。如果任何机构有任何想法,请与我在这里分享的是我的代码: -滑动列表在Xamarin窗体(Android)中查看目录项目
public class NativeCell : ViewCell
{
}
这里是渲染器的代码: -
[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)
{
}
} }
我建立的ListView ViewCell渲染器,我想从左到右滑动项目,我想要开火手势事件: -
private void Cell_GenericMotion(object sender, GenericMotionEventArgs e)
{
}
[Xamarin Form中的SwipeListView]的可能重复(http://stackoverflow.com/questions/38767659/swipelistview-in-xamarin-form) –
如果您有更多要添加的内容,请更新您现有的问题。 –