@Override
public void onStart() {
super.onStart();
FirebaseRecyclerAdapter firebaseRecyclerAdapter = new FirebaseRecyclerAdapte
You need to do the following:
DatabaseReference ref=FirebaseDatabase.getInstance().getReference();
Query query=ref.child("Users").orderByChild("name").equalTo(name);
FirebaseRecyclerOptions options =
new FirebaseRecyclerOptions.Builder()
.setQuery(query, AllUsers.class)
.build();
FirebaseRecyclerAdapter adapter = new FirebaseRecyclerAdapter(options) {
First, you need to configure the adapter by building FirebaseRecyclerOptions
AllUsers
is your POJO class, and you need to make a query to have in the recycler adapter.
more info here:
https://github.com/firebase/FirebaseUI-Android/tree/master/database