thorbenprimke / realm-recyclerview

A RecyclerView that is powered by Realm and lots more
555 stars 151 forks source link

Enable swipe to delete only in one direction? #90

Closed puneetagarwal closed 5 years ago

puneetagarwal commented 7 years ago

Hello,

Thanks for creating this library. It is very useful for showing smooth animations.

I am trying to implement the swipe to delete functionality using this library, but I need delete functionality only when the user swipes in the left direction. Also, when the user swipes the item to the right side, it should animate back to its original position and should not be removed from RecyclerView. I am not able to find how can I attach ItemTouchHelper to the RecyclerView.

How can I achieve that?