title: Firebase Get Dynamic Field Value in Recyclerview
body: <p>I have below firebase structure where user_id has passed as a key, now I need to retreive this value in recyclerview but finding no way how to get this value inside my recyclerview</p>
  <p><a href="https://i.stack.imgur.com/q29GW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q29GW.png" alt="enter image description here" /></a></p>
  <p>I have tried a value event listener inside my bind method to get the value but not working below is the code i tried</p>
  <pre><code>final DatabaseReference bookref = FirebaseDatabase.getInstance().getReference(&quot;nfjir_cPtfjdueru9piy&quot;).child(&quot;b&quot;);
  
  bookref.orderByChild(userId).addListenerForSingleValueEvent(new ValueEventListener() {
                   @Override
                   public void onDataChange(DataSnapshot dataSnapshot) {
                       for (DataSnapshot datas : dataSnapshot.getChildren()) {
                           if (dataSnapshot.hasChildren()) {
                               int userid_id = datas.child(userId).getValue(int.class);
                               tvEta.setText(Integer.toString(userid_id));
                           }
                       }
                   }
  
                   @Override
                   public void onCancelled(DatabaseError databaseError) {
  
                   }
               });
  </code></pre>
  <p>Is there any way to get the value directly from recyclerview without additional listener? or how can I retrieve this?</p>