dimanche 8 mai 2016

How to delete an item by its id?

here I delete an item in my RecyclerView, but I need to delete also the item with that id in the db

     @Override
       public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) {
           itemTouchHelperAdapter.onItemRemoved(viewHolder.getAdapterPosition());

       }

Aucun commentaire:

Enregistrer un commentaire