recyclerviewhelper
recyclerviewhelper copied to clipboard
How to remove a particular feature while keeping others?
I want to remove the onItemDismiss feature completely, while keeping the others. That means, I don't want the views to be swipe-able at all. How do I achieve that?
Following the docs just set the two last booleans to false .
// Setup onItemTouchHandler to enable drag and drop , swipe left or right
ItemTouchHelper.Callback callback = new RVHItemTouchHelperCallback(adapter, true, true,true);
/**
* Instantiates a new Rvh item touch helper callback.
*
* @param adapter the adapter
* @param isLongPressDragEnabled the is long press drag enabled
* @param isItemViewSwipeEnabledLeft the is item view swipe enabled left
* @param isItemViewSwipeEnabledRight the is item view swipe enabled right
*/