We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I drag an item and I want the other open items to be closed. Is there any configuration?
The text was updated successfully, but these errors were encountered:
Use it like this. Hope this will help you. This is for right open, change is accordingly...
if (position == selectedPos && itemHolder.swipeLayout.isRightOpen()){ itemHolder.swipeLayout.close(true); }
and in onswipe listener update the selectedPos
swipeLayout.setOnActionsListener(new SwipeLayout.SwipeActionsListener() { @Override public void onOpen(int direction, boolean isContinuous) { notifyItemChanged(selectedPos); selectedPos = getAdapterPosition(); if (direction == SwipeLayout.LEFT && isContinuous) { if (getAdapterPosition() != NO_POSITION) { delConfirmation(itemView.getContext(), getAdapterPosition(), swipeLayout); } } } @Override public void onClose() { //called when closing } });
Sorry, something went wrong.
No branches or pull requests
I drag an item and I want the other open items to be closed.
Is there any configuration?
The text was updated successfully, but these errors were encountered: