Search code examples
androidlayoutandroid-tabhost

Unexpected visual element in a simple Tab layout


The screen shot below is of a simplified version of the application from the Tab Layout tutorial. You can see a black horizontal line below the tabs. Why is it there and how can I remove it?

alt text


Solution

  • Try removing the android:padding attribute from the FrameLayout. If you want padding around everything but the top then you'll have to use the padding/Left/Right/Bottom attributes.