Skip to content Skip to sidebar Skip to footer

Get Rid Of The Line Under Tabwidget

I've got simple tab activity with next layout:

Solution 1:

Apply a custom theme to your activity, and null out the android:windowContentOverlay attribute.

Define a theme in themes.xml:

<stylename="YourTheme"parent="if you want">
  ...   
  <itemname="android:windowContentOverlay">@null</item>
  ...
</style>

Apply the theme on your application or the activity in AndroidManifest.xml:

<applicationandroid:theme="@style/YourTheme"... >

Hope it helps. It caused me lots of headache...

Solution 2:

In your layout xml:

<TabWidget...android:tabStripEnabled="false" >

 ... 

</TabWidget>

Solution 3:

It seems that the way of doing that is to nest the tabwidget in a LinerLayout... Look here.

Solution 4:

Unfortunately you can't get rid of it. This is a result of how the TabWidget is implemented. Internally the TabWidget is an ActivityGroup and the contents of each tab is its own Activity.

Solution 5:

What I suggest you is to use the library provided by GrreenDroid: http://android.cyrilmottier.com/?p=274

Just have a look at The GDTabActivity, you will be able to tweak everything and get rid of this Bar.

http://android.cyrilmottier.com/medias/actionbar/action_bar_4.png

Post a Comment for "Get Rid Of The Line Under Tabwidget"