I have made a recycleview in the android. I am a beginner in android and don’t know how to add the swipe functionality to it!
Like, I have the recycleview having bind to the list of LinearLayout having 2TextViews and an ImageView in it.
Now I want to add the swap functionality to it, such that when I do the swap the next item of the list comes and when I swap back the previous item comes.

I don’t know how to do that!

New contributor

Anshul Trivedi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.