title: How do I create an expandable list view in android from a List of Objects?
body: <p>I have a list of objects in android. I want to iterate through the list and create an expandable list view, with one entry per object. I already have the <code>ExpandableListView</code> created in the xml file. So i Know I start with:</p>
  
  <pre><code>ExpandableListView results = ((ExpandableListView)rootView.findViewById(R.id.results));
  </code></pre>
  
  <p>I want to go through the list of Objects and create a <code>Parent</code> for each object, and each <code>Child</code> will be an instance variable of the main Object.</p>
  
  <p>for instance:</p>
  
  <pre><code>Parent = Object.Title
    Child1 = Object.Taste
    Child2 = Object.smell
  Parent1 = Object1.Title
    Child1 = Object1.Taste
    Child2 = Object1.smell
  </code></pre>