title: Custom Expandable ListView is triggering scroll on ScrollView
body: <p>I have a custom <code>ExpandableScrollView</code> (nothing to do with the stock one):</p>
  
  <pre><code>public class ExpandableListView extends ListView
  {
      public ExpandableListView(Context context, AttributeSet attrs)
      {
          super(context, attrs);
      }
  
      @Override
      protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
          super.onMeasure(widthMeasureSpec, heightMeasureSpec);
  
          expand();
      }
  
      public void expand() {
          ListAdapter mAdapter = getAdapter();
  
          int totalHeight = 0;
  
          for (int i = 0; i &lt; mAdapter.getCount(); i++) {
              View mView = mAdapter.getView(i, null, this);
  
              mView.measure(
                      MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED),
  
                      MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));
  
              totalHeight += mView.getMeasuredHeight();
          }
  
          ViewGroup.LayoutParams params = getLayoutParams();
          params.height = totalHeight
                  + (getDividerHeight() * (mAdapter.getCount() - 1));
          setLayoutParams(params);
          requestLayout();
      }
  }
  </code></pre>
  
  <p>I have an instance of this view inside a <code>ScrollView</code>. The problem is that when the layout is inflated and attached to the window, the <code>ScrollView</code> scrolls to the bottom. </p>
  
  <p>I'm trying to figure out if it is a problem with the <code>ScrollView</code> or with the <code>ExpandableScrollView</code>. Maybe should I expand the list on another cycle?</p>
  
  <p>Thanks</p>