Closed rex3du closed 9 years ago
I handled it by adding the following code to the onStartOpen(SwipeLayout swipeLayout) method from the added SwipeListener:
SwipeLayout.DragEdge dragEdge = swipeLayout.getDragEdge();
this.isLeftToRightSwipe = SwipeLayout.DragEdge.Left.equals(dragEdge);
if(this.isLeftToRightSwipe) {
// handle left to right swipe
} else {
// handle right to left swipe
}
@fritzsche91 Thank you for solution. It works.
How to differentiate left swipe and right swipe? Currently, I need to trigger different functions when user swipe left and swipe right? Any Suggestions??
Thank you in advance