Jithin
Jithin

Reputation: 1765

extra line in tab host

I'm really really stuck the following problem.
I used FrameLayout inside LinearLayout and then through code i added linearlayout to this FrameLayout but it produce an extra space. I have given the screen shot below. enter image description here

I part marked as white is the problem. i need to remove this.
My FrameLayout

<TabHost
        android:cacheColorHint="#00000000"
        android:id="@android:id/tabhost"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content">
        <TabWidget
            android:id="@android:id/tabs"
            android:cacheColorHint="#00000000"
            android:visibility="gone"
            android:layout_width="100dp"
            android:layout_height="10dp">
        </TabWidget>
        <FrameLayout
            tyle="@style/tabhost"
            android:cacheColorHint="#00000000"
            android:id="@android:id/tabcontent"
            android:layout_width="wrap_content"             
                    android:layout_height="fill_parent" />
    </TabHost>

This is the linearLayout i added this FrameLayout

 <LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#FFFFFF"/>

Thank you

Upvotes: 0

Views: 2187

Answers (2)

Labeeb Panampullan
Labeeb Panampullan

Reputation: 34823

Hope you are trying to remove the fading bar on Tabhost,
If so refer this Delete fading bar on Tabhost

Upvotes: 1

DKIT
DKIT

Reputation: 3481

Try setting padding and margins of your view to 0.

Upvotes: 0

Related Questions