Search code examples
androidandroid-recyclerviewswipe-gestureitemtouchhelper

RecyclerView swipe action without deletion


I want a RecyclerView with swipe gesture to trigger a action like mark the swiped item as favorit. It is possible to use the ItemTouchHelper but disable the view deletion after swipe? A common pattern is a swipe to display some button but this is not the wanted behavior.


Solution

  • I implement a solution which can be found here. Thanks to Xenofon how helped me.