In my android app with kotlin, i want to swipe the recyclerview to delete, but the elemt swiped in recycler view is not deleted
the desciption of my app is below, could you please help me to find the solution
first of all i create a simple layout that will be holding the RecyclerView "bag_list.xml":
The RecyclerView should be holding a list of items.I used the bag_item.xml layout file to create the item list.
I create an adapter for recyclerview BagAdapter :
and i create an activity BagListActivity as the following code