Malinskiy / SuperRecyclerView

Pumped up RecyclerView
2.63k stars 469 forks source link

How to properly use swipe-to-dismiss? #28

Open Zeliret opened 9 years ago

Zeliret commented 9 years ago

I have a SuperRecyclerView instance and I setup a swipe-to-dismiss callback to it. The canDismiss method returns true. But it does not work. Probably I do something wrong.

Malinskiy commented 9 years ago

Hi @Zeliret,

have you checked out the sample app?

you should override canDismiss, onDismiss and also setItemAnimator properly.

cokemal commented 7 years ago

Having OnClick Listener on Viewholder of the RecyclerView prevents SwipeToDismiss from functioning properly.