0

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

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Emanuil Rusev
  • 34,563
  • 55
  • 137
  • 201

2 Answers2

1

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.

Rich Schuler
  • 41,814
  • 6
  • 72
  • 59
1

I think that line results from how the tabs are implemented. If you look at one of my questions about a strange black line I found that it was an artifact of the ActivityGroup that I was using. This is the same widget that tabs use.

Community
  • 1
  • 1
CaseyB
  • 24,780
  • 14
  • 77
  • 112