Home > Blockchain >  how to create 'Swipe on a message to reply on WhatsApp' kind of view using custom view on
how to create 'Swipe on a message to reply on WhatsApp' kind of view using custom view on

Time:12-09

I have a list of items in list view, I want to display the item that user swipes left on, in a new fragment or activity as a textview. I want the entire list to animate and move a bit to left as if it has been pulled to left with the finger. I want to execute the same using custom views and also let me know if there are any libraries available for the same.

image reference

CodePudding user response:

You can either add Swipeable behavior to your RecyclerView like this :

Add Swipeable Behavior

or use an external library to do that for you :

Use External Lib

  • Related