New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to delete item #84
Comments
If a user clicks/taps on an item, you'll get the position of that item from Android. With that you can call |
Puf, how can you delete the item from the viewholder? |
@puf, I'm also wondering how you delete the item from the viewholder? Seems like the viewholder doesn't know about the adapter. |
@astromme Simply create a public void setRef(DatabaseReference ref) {
mRef = ref;
}
// Do other stuff like setting a click listener |
Yes Me to I have the same probleme i want to delete only from the View (recyclerview ) and not for the database ! any solutions ! ? |
i have an item using a relative layout for view holder in recycleview, it have an id to declare it in code. so when populating view to bind the data on viewholder i just need to call |
this is who can solve my problem i tired to much |
// for (DataSnapshot ds:dataSnapshot.getChildren())
how to delete data from recyclerview and also from firebase database.....i used customer adapter extends from recyclerview adapter ....plz help me anyone |
? |
No description provided.
The text was updated successfully, but these errors were encountered: