• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Kotlin :RecyclerView Swipe to Delete

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!