TabWidget doesn't fill in HorizontalScrollView
<p>I want to show tabs width horizontal scrollbar. I tried to implement like this <a href="http://stackoverflow.com/questions/2492840/how-do-you-set-tab-view-to-scroll">How do you set tab view to scroll?</a></p>

<p>But the tabs doesn't fill the width. </p>

<p><strong>How to fix it?</strong> </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
    &lt;LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"&gt;

        &lt;HorizontalScrollView
            android:id="@+id/horizontalScrollView1"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" &gt;

            &lt;LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="match_parent"
                android:orientation="horizontal" &gt;

                &lt;TabWidget
                    android:id="@android:id/tabs"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content" &gt;

                &lt;/TabWidget&gt;

            &lt;/LinearLayout&gt;
        &lt;/HorizontalScrollView&gt;

        &lt;FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"&gt;

        &lt;/FrameLayout&gt;

    &lt;/LinearLayout&gt;

    &lt;ProgressBar
        android:id="@+id/destinationProgressBar"
        style="?android:attr/progressBarStyleLarge"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center" /&gt;

&lt;/TabHost&gt;
</code></pre>

<p><img src="http://i.stack.imgur.com/dTl8J.png" alt="enter image description here"></p>
