SwipeStack icon indicating copy to clipboard operation
SwipeStack copied to clipboard

swipeToPosition

Open kibotu opened this issue 10 years ago • 3 comments

is it possible to swipe to a specific position? for instance to go back one card

kibotu avatar Jun 12 '16 09:06 kibotu

I've done something like this:

public void swipeToPosition(int position) {
   mCurrentIndex = position;
   removeAllViewsInLayout();
   requestLayout();
}

geftimov avatar Dec 28 '16 02:12 geftimov

@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 avatar Mar 09 '17 07:03 MartinL6

@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.

geftimov avatar Mar 09 '17 09:03 geftimov