Hello, i'm new there.
I have a trouble with my app, i made a RECYCLERVIEW with my firebase data as items, but i would like to filter it.
I want to hide any data that has "connected: off" from the recyclerview list.
however, I want to display all the data that has "connected: on"
Here is my code that will help you in this process, I want to filter the "on" and "off", hide the "off" and display the "on".
Thank you for helping me.
I have a trouble with my app, i made a RECYCLERVIEW with my firebase data as items, but i would like to filter it.
I want to hide any data that has "connected: off" from the recyclerview list.
however, I want to display all the data that has "connected: on"
Here is my code that will help you in this process, I want to filter the "on" and "off", hide the "off" and display the "on".
Java:
FirebaseRecyclerAdapter<Films,FilmsViewHolder> adapter = new FirebaseRecyclerAdapter<Films, FilmsViewHolder>(
Films.class,
R.layout.salonview,
FilmsViewHolder.class,
//referencing the node where we want the database to store the data from our Object
mDatabaseReference.child("Salons").getRef()
) {
@Override
protected void populateViewHolder(FilmsViewHolder viewHolder, final Films model, int position) {
....
Thank you for helping me.