mithun
mithun

Reputation: 31

Remove the bottom line present in android tab bar

How do I remove the line which is present at the bottom of the deselected tabs.

Upvotes: 0

Views: 2572

Answers (2)

unkown
unkown

Reputation: 1128

To remove the underline from the unselected tab, use tabWidget.setStripeEnabled("false");.

If you want to use it dynamically in coding and if you want to write in xml, then set tabwidget property: android:tabStripeEnabled=false

Upvotes: 4

petrumo
petrumo

Reputation: 1116

If you want to use custom tab, this tutorial is very good http://joshclemm.com/blog/?p=136, it would give the full flexibility over the tabs and for the tutorial case, run without mTabHost.getTabWidget().setDividerDrawable(R.drawable.tab_divider); it won't show the bottom line.

For non customized one, maybe mTabHost.getTabWidget().setDividerDrawable(null) it will work

Upvotes: 0

Related Questions