title: How to query a specific child value in multiple nodes with firebase android
body: <p>I want to query a specific child value in multiple nodes, to populate them in a list view by FirebaseListAdapter.
  I'm passing a firebase reference to FirebaseListAdapter method to listen to, which is in red rectangle in the picture below,
  <strong>And</strong> I want to populate in the list view the values of the "category" key only. which are in green rectangle in the picture below.</p>
  
  <p><a href="https://i.stack.imgur.com/KgC2k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KgC2k.png" alt="enter image description here"></a></p>
  
  <p>My code is here:</p>
  
  <pre><code>    catgoryList = (ListView) findViewById(R.id.catList);
      rootRef = FirebaseDatabase.getInstance().getReference();
      restaurantMenuRef = rootRef.child("menu").child(restaurantID);
  
      FirebaseListAdapter&lt;String&gt; listAdapter = new FirebaseListAdapter&lt;String&gt;
              (this, String.class, R.layout.menu_list_item, restaurantMenuRef ) {
          @Override
          protected void populateView(View v, String s, int position) {
              TextView menuName = (TextView)v.findViewById(R.id.menuName);
              menuName.setText(s);
          }
      };
      catgoryList.setAdapter(listAdapter);
  </code></pre>
  
  <p>And the layout for the listView containing a TextView to display the category name.</p>