SwipeStack icon indicating copy to clipboard operation
SwipeStack copied to clipboard

Loop Stack and put view on top

Open f0rke opened this issue 8 years ago • 3 comments

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?

f0rke avatar Apr 15 '16 08:04 f0rke

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 ?

ram-readwhere avatar May 17 '16 07:05 ram-readwhere

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();
        }
    });`

SumantaBee avatar Oct 02 '16 09:10 SumantaBee

Return last swiped view? Use code in my issue

D330 avatar Jan 12 '18 14:01 D330