Reputation: 31
How do I remove the line which is present at the bottom of the deselected tabs.
Upvotes: 0
Views: 2572
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
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