示例#1
0
 public override bool OnMove(RecyclerView p0,
                             RecyclerView.ViewHolder p1,
                             RecyclerView.ViewHolder p2)
 {
     _adapter.OnItemMove(p1.AdapterPosition, p2.AdapterPosition);
     return(true);
 }
示例#2
0
        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));
        }
示例#4
0
        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);
 }