0

I am working on android. I have created the bottom tabs for my project and it is working fine. But my question is to how to remove the line at the bottom? I have kept the following line android:tabStripEnabled="true" in my layout.

The line is removed but when i am clicking the individual tabs a small line on both the sides of individual tab is existing. Can anybody suggest how to remove that.

Thanks for your help

hemanth kumar
  • 3,068
  • 10
  • 41
  • 64

3 Answers3

2

Try this:

TabHost tabHost = getTabHost();
tabHost().setTabStripEnabled(false);

The previous answer might not be working on emulator but it must work on a phone. Have tried it on a real device?

superM
  • 8,605
  • 8
  • 42
  • 51
1
  tabStripEnabled = false

Here is answer of your question.

Community
  • 1
  • 1
Khushbu Shah
  • 1,603
  • 3
  • 27
  • 45
-1

If u are using TabLayout in android Just Remove

 android:elevation="@dimen/_1sdp"

this line. Hope THis help someone!

Sana Ebadi
  • 6,656
  • 2
  • 44
  • 44