Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove a particular feature while keeping others? #9

Open
sarbajitsaha opened this issue Jun 10, 2017 · 1 comment
Open

How to remove a particular feature while keeping others? #9

sarbajitsaha opened this issue Jun 10, 2017 · 1 comment

Comments

@sarbajitsaha
Copy link

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?

@haithamsboui
Copy link

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
 */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants