public override void OnSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState)
 {
     if (actionState != ItemTouchHelper.ActionStateIdle)
     {
         if (viewHolder is IItemTouchHelperViewHolder)
         {
             IItemTouchHelperViewHolder itemViewHolder = (IItemTouchHelperViewHolder)viewHolder;
             itemViewHolder.OnItemSelected();
         }
     }
     base.OnSelectedChanged(viewHolder, actionState);
 }
Beispiel #2
0
        public override void OnSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState)
        {
            // We only want the active item to change
            if (actionState != ItemTouchHelper.ActionStateIdle)
            {
                if (viewHolder is IItemTouchHelperViewHolder)
                {
                    // Let the view holder know that this item is being moved or dragged
                    IItemTouchHelperViewHolder itemViewHolder = (IItemTouchHelperViewHolder)viewHolder;
                    itemViewHolder.OnItemSelected();
                }
            }

            base.OnSelectedChanged(viewHolder, actionState);
        }