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

disable swipe #17

Open
pixelbendr opened this issue Jun 28, 2016 · 3 comments
Open

disable swipe #17

pixelbendr opened this issue Jun 28, 2016 · 3 comments

Comments

@pixelbendr
Copy link

Is it possible to disable swipe for left or right? in my app I want users to just swipe right to depict moving through a list.

@pixelbendr
Copy link
Author

Any info on this?

@pacoalface
Copy link

pacoalface commented Nov 3, 2016

Hi @pixelbendr ! we have the same problem, we only allow users to swipe right. You can try to add something like this on your Shuffle view setup:

swipeCardsComponent.setViewAnimator(new ShuffleViewAnimator() { @Override public boolean animateExit(@NonNull CardDraggableView draggableView, Direction direction, int duration) { return super.animateExit(draggableView, Direction.RIGHT, duration); } }.setPushRightAnimateViewStackScaleUp(true).setPushLeftAnimateViewStackScaleUp(true));

@RowlandOti
Copy link

@pixelbendr ,use app:shuffle_infinite="true" users can now just swipe through the list, while not dismissing the items.

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

3 participants