title: TabHost inside of a Scrollview: always scrolls down when a Tab is clicked
body: <p>I have an Activity which has a Scrollview as the top level element. Inside there are some other Views and at some point there is a TabHost. You might get a better impression by looking at <a href="http://img263.imageshack.us/img263/5329/bildschirmfoto20100106u.png" rel="nofollow noreferrer">the screenshot</a>. The TabHost has three tabs, each with another Activity that are launched by an Intent. </p>
  
  <p>Everything is working fine except one thing. Whenever I click on a Tab, the Scrollview automatically scrolls down as you can see <a href="http://img341.imageshack.us/img341/5329/bildschirmfoto20100106u.png" rel="nofollow noreferrer">over here</a>. The TabHost is out of the screen afterwards. I simply don't want it to scroll down, but can't see what the problem is. I tested on a 1.5 and 1.6 device and a 2.0 Emulator with the same results.</p>
  
  <p>The xml of my TabHost looks like this:</p>
  
  <pre><code>    &lt;TabHost
          android:id="@+id/tabhost"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"&gt;
          &lt;LinearLayout
              android:orientation="vertical"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"&gt;
              &lt;TabWidget
                  android:id="@android:id/tabs"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content" /&gt;
              &lt;FrameLayout
                  android:id="@android:id/tabcontent"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"&gt;
              &lt;/FrameLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/TabHost&gt;
  </code></pre>
  
  <p>And this is the code for adding a Tab:</p>
  
  <pre><code>private void addTab(int descriptionRes, Class&lt;?&gt; destination, int flags) {
      String description = getString(descriptionRes);
      TabSpec spec = mTabHost.newTabSpec(description);
      spec.setIndicator(description);
      Intent i = new Intent(this, destination);
      i.setData(Uri.parse(member.getId())).setFlags(flags);
      spec.setContent(i);
      mTabHost.addTab(spec);
  }
  </code></pre>
  
  <p>Any suggestions?</p>