Loop Stack and put view on top
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?
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 ?
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();
}
});`
Return last swiped view? Use code in my issue