hemanth kumar
hemanth kumar

Reputation: 3078

How to remove the line for bottom tabs in android?

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

Upvotes: 0

Views: 3453

Answers (3)

Sana Ebadi
Sana Ebadi

Reputation: 7210

If u are using TabLayout in android Just Remove

 android:elevation="@dimen/_1sdp"

this line. Hope THis help someone!

Upvotes: -1

superM
superM

Reputation: 8695

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?

Upvotes: 2

Khushbu Shah
Khushbu Shah

Reputation: 1683

  tabStripEnabled = false

Here is answer of your question.

Upvotes: 1

Related Questions