public override bool OnMove(RecyclerView p0, RecyclerView.ViewHolder p1, RecyclerView.ViewHolder p2) { _adapter.OnItemMove(p1.AdapterPosition, p2.AdapterPosition); return(true); }
public override bool OnMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) { fromPosition = viewHolder.AdapterPosition; toPosition = target.AdapterPosition; mAdapter.OnItemMove(viewHolder.AdapterPosition, target.AdapterPosition); return(true); }
public override bool OnMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) { if (viewHolder.ItemViewType != target.ItemViewType) { return(false); } return(_adapter.OnItemMove(viewHolder.BindingAdapterPosition, target.BindingAdapterPosition)); }
public override bool OnMove(RecyclerView recyclerView, RecyclerView.ViewHolder source, RecyclerView.ViewHolder target) { if (source.ItemViewType != target.ItemViewType) { return(false); } // Notify the adapter of the move return(mAdapter.OnItemMove(source.AdapterPosition, target.AdapterPosition)); }
public override bool OnMove(RecyclerView RecyclerView, RecyclerView.ViewHolder ViewHolder, RecyclerView.ViewHolder Target) { _adapter.OnItemMove(ViewHolder.AdapterPosition, Target.AdapterPosition); return(true); }