You are here
Home > Android > Swipe To Delete and Undo Feature in Android RecyclerView

Swipe To Delete and Undo Feature in Android RecyclerView

Hello Friends, Today I am going to share how to add swipe to delete and undo feature in Android RecyclerView. Recently I was working on an app in which I was required to add same swipe to delete feature. So, I googled and found the solution and modified it according to the app. But here I am sharing copy of the code available at https://www.journaldev.com/23164/android-recyclerview-swipe-to-delete-undo with very minor modifications. But for the solution of the problem(swipe to delete), all the credit goes to Anupam Chugh @ journaldev.com

Now, here is my code

MainActivity.java

activity_main.xml

RecyclerViewAdapter.java

SwipeToDeleteCallback.java

item.xml

Video

AndroidStudio Project Download

Thanks for Stoping by
If you find this helpful then please share

Rajesh Kumar Sahanee
I am a passionate Java Developer and I like Computer Programming. I love to do some interesting experiments and listening music in my free time.
https://www.zatackcoder.com

Comments

zatackcoder
Top

  Â