0

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.

KirbyAbadilla
  • 189
  • 1
  • 5
  • 16

1 Answers1

2
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);
Naveen Tamrakar
  • 3,349
  • 1
  • 19
  • 28