title: How to Measure child expandable list height and width
body: <p>I am using expandable list view to make 3 - level hierarchy, would like to know how to set internal list height and width.
  I knew we have onMeasure for this purpose but in my case it not allowing me to capture whole space of parent list view.</p>
  
  <p>may be I am giving wrong value to it, here is the code which is I am using for setting height and width of child expandable list.</p>
  
  <p><code></p>
  
  <pre><code>    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) 
      {
  
          widthMeasureSpec = MeasureSpec.makeMeasureSpec(960,MeasureSpec.AT_MOST);
          heightMeasureSpec = MeasureSpec.makeMeasureSpec(800,MeasureSpec.AT_MOST);
          super.onMeasure(widthMeasureSpec, heightMeasureSpec);
      }
  </code></pre>
  
  <p></code></p>
  
  <p>Currently it appearing as follow
  <code></p>
  
  <pre><code>&lt;ParentGroup1                &gt;
  &lt;ChildParentGroup&gt;
  &lt;Child1&gt;
  &lt;Child2&gt;
  &lt;child3&gt;
  &lt;ParentGroup2                &gt;
  </code></pre>
  
  <p></Code></p>
  
  <p>and it should appear like below.
  <Code></p>
  
  <pre><code>&lt;ParentGroup1                &gt;
  &lt;ChildParentGroup            &gt;
  &lt;Child1                      &gt;
  &lt;Child2                      &gt;
  &lt;child3                      &gt;
  &lt;ParentGroup2                &gt;
  </code></pre>
  
  <p></Code></p>
  
  <p>Please advise/suggest for the same.</p>
  
  <p>Thanks for your time.</p>