Rremove extra spaces in Tab host implementation in Android
<p>I have a question that I am implementing a tab bar in my android app but Tab host displays some extra margins from left, right, top and bottom which is looking so ugly, So how can we remove these extra spaces from Tab Host. You can understand easily by attached picture with red circled extra spaces.</p>

<p>Please suggest me the right answer regarding the same.</p>

<p><strong>Xml Layout:</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" android:layout_marginLeft="0dip" android:layout_marginRight="0dip" android:layout_marginTop="0dip"
    android:layout_marginBottom="0dip" xmlns:android1="http://schemas.android.com/apk/res/android"&gt;
    &lt;LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="5dp"&gt;
         &lt;FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:padding="5dp"
            android:layout_weight="1"
            android:layout_marginTop="-6dp"
            /&gt;
        &lt;TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" /&gt;

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