How to remove android tab widget border lines?

3.2k views Asked by At

I have a android tab host activity and I want to remove the border lines between the tabs

a default tab widget looks like this:

Tab1|Tab2|Tab|

but I want it to appear like this:

Tab1 Tab2 Tab3

How can I obtain this kind of look on my android tab widget. I also tried to put tabStripEnable = "false" but nothing happened.

1

There are 1 answers

3
Naveen Tamrakar On BEST ANSWER
tabHost.getTabWidget().setDividerDrawable(null);
or 
tabHost.getTabWidget().setStripEnabled(true);    
tabHost.getTabWidget().setRightStripDrawable(android.R.color.transparent);
tabHost.getTabWidget().setLeftStripDrawable(android.R.color.transparent);

or

 tabHost.getTabWidget().setRightStripDrawable(pass blue colour);
 tabHost.getTabWidget().setLeftStripDrawable(pass blue colour);