title: Issue in Multilevel ExpandableListview in android
body: <p>Scroll Issue in Multilevel ExpandableListview in android </p>
  
  <p>I have browsed for implementing multilevel ExpandableListView and i came to know with very important </p>
  
  <p><strong>blogs :</strong>
  <a href="http://androidcodesnips.blogspot.in/2011/09/three-level-expandable-list.html" rel="nofollow noreferrer">Link1</a>
  <a href="http://mylifewithandroid.blogspot.in/2011/02/3-level-expandable-lists.html" rel="nofollow noreferrer">Link2</a></p>
  
  <p><strong>Stackoverflow</strong> Link:
  <a href="https://stackoverflow.com/questions/18765638/how-to-display-more-than-3-level-of-expandable-list-view?rq=1">Link1</a></p>
  
  <p>Implemented multilevel ExpandableListview with <a href="http://androidcodesnips.blogspot.in/2011/09/three-level-expandable-list.html" rel="nofollow noreferrer">Blog</a> but faced problem that all child not visible and can't scroll at 3rd level. So i searched for scrolling issues and found <a href="https://stackoverflow.com/questions/24869046/multilevel-expandablelistview-not-highlighting-properly">here</a> that which blog i am following gave static height and width of ExpandableListview in <strong>onMessured</strong>.</p>
  
  <pre><code>protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) 
    {
     widthMeasureSpec = MeasureSpec.makeMeasureSpec(960, MeasureSpec.AT_MOST);
     heightMeasureSpec = MeasureSpec.makeMeasureSpec(600, MeasureSpec.AT_MOST);
     super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }  
  </code></pre>
  
  <p><strong>replaced with</strong> </p>
  
  <pre><code>@Override
  protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec){
      widthMeasureSpec = MeasureSpec.makeMeasureSpec(MeasureSpec.getSize(widthMeasureSpec), MeasureSpec.EXACTLY);
      heightMeasureSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE, MeasureSpec.AT_MOST);
      super.onMeasure(widthMeasureSpec, heightMeasureSpec);
  }
  </code></pre>
  
  <p>So my scrolling issue gone but because of maximum height .</p>
  
  <pre><code>heightMeasureSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE, MeasureSpec.AT_MOST);
  </code></pre>
  
  <p>given to elv getChildView of 2nd Elv called only once and all child loading at first time. This will causing memory issue for large set of data and i can't applied pull to refresh. </p>
  
  <p>how to resolve this issue and any batter idea to implement multilevel ELV?</p>