I have a recyclerview
that I charge from a database that I have in Firebase , I do it like this:
databaseReference.child("Personas").addChildEventListener(new ChildEventListener() {
@Override
public void onChildAdded(DataSnapshot dataSnapshot, String s) {
listPersonas.add(dataSnapshot.getValue(Personas.class));
displayPersonas(listPersonas);
}
In Firebase it would be something like that,
People / id /
- dataperson: value
- show: value
Well, what I would like to achieve is that when the value of show is for example true that item is not shown in recyclerview
the others that do not have that value in show yes.
How could I do this? Thanks!