android-advancedrecyclerview
android-advancedrecyclerview copied to clipboard
How to Disable and Enable Drag
mRecyclerViewDragDropManager.attachRecyclerView(mRecyclerView);
This is How I'm Attaching drag-drop to recycler view. How can I detach or stop drag?
I believe you can set dragDropManager.setInitiateOnTouch(true); dragDropManager.setInitiateOnLongPress(true); dragDropManager.setInitiateOnMove(true); (or one of them, depends on your needs)
And just set them to false to disable drag-drop mode
And if you want to bind/unbind events completely then use dragDropManager.attachRecyclerView(rv) and dragDropManager.release()