Skip to content
This repository has been archived by the owner on Jul 22, 2019. It is now read-only.

Loop Stack and put view on top #13

Open
f0rke opened this issue Apr 15, 2016 · 3 comments
Open

Loop Stack and put view on top #13

f0rke opened this issue Apr 15, 2016 · 3 comments

Comments

@f0rke
Copy link

f0rke commented Apr 15, 2016

How can you return the last swiped card back on top of the stack? And how do you activate endless looping the views. Will those features be available in a future release?

@ram-readwhere
Copy link

ram-readwhere commented May 17, 2016

How can I implement endless looping of stacks ? Currently, I am getting empty view after last view swiped.

Also, I need to put last swiped view back on top on right swipe and next card on left swiped. Will these feature be available in near future ?

Hi @f0rke , Have you able to implement these features ?

@SumantaBee
Copy link

You can use resetStack() method to reset the stack once end is reached.
`swipeStack.setListener(new SwipeStack.SwipeStackListener() {
@OverRide
public void onViewSwipedToLeft(int position) {

        }

        @Override
        public void onViewSwipedToRight(int position) {

        }

        @Override
        public void onStackEmpty() {
            swipeStack.resetStack();
        }
    });`

@D330
Copy link

D330 commented Jan 12, 2018

Return last swiped view? Use code in my issue

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

No branches or pull requests

4 participants