SwipeStack
SwipeStack copied to clipboard
swipeToPosition
is it possible to swipe to a specific position? for instance to go back one card
I've done something like this:
public void swipeToPosition(int position) {
mCurrentIndex = position;
removeAllViewsInLayout();
requestLayout();
}
@geftimov can you explain this? I want to get a card back when it is swiped. Swiping to left or right removes the card, can we get it back by swiping from edge to left and right?
@MartinL6 You can reverse the order once you start the swiping but this is not the idea of this library. I should probably create a library that implement the full swipe stack view. Because this one is not supported anymore.