title: ListView in a HorizontalScrollView in Android
body: <p>I have an <code>ListView</code> inside a <code>HorizontalScrollView</code> and it works perfectly fine, except for the initial load.  I'm loading the data for the list view from a web service so I created a thread to do that.  Once I have the data, I simply call <code>_myListAdapter.notifyDataSetChanged();</code> and the data becomes visible in the <code>ListView</code>.  But if the <code>ListView</code> is far off the screen, the containing <code>HorizontalScrollView</code> will automatically scroll to make this <code>ListView</code> visible.  How can I call <code>notifyDataSetChanged</code> without making the <code>ListView</code> scroll into the current view?  </p>
  
  <p>Here's an idea of how I have my layout XML file:</p>
  
  <pre><code>&lt;HorizontalScrollView 
      android:id="@+id/my_scrollview"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" 
      android:scrollbars="none"&gt;
  
          &lt;LinearLayout android:id="@+id/my_layout"
              android:layout_width="wrap_content"
              android:layout_height="fill_parent"
              android:orientation="horizontal"&gt;
  
                  &lt;ListView android:id="@+id/my_list"
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:layout_weight="1" /&gt;
  
          &lt;/LinearLayout&gt;
  
  &lt;/HorizontalScrollView&gt;
  </code></pre>