umerk44
umerk44

Reputation: 2817

Hide vertical bar on the side of tab

I am trying to remove a vertical bar that appear in in the side of each tab i tried it by setting

<item name="showDividers">middle</item>
        <item name="divider">@drawable/tab_unselected</item>
        <item name="dividerPadding">5dp</item> 

but i didn't got any success. See the snapshot the line in the red close region, i want to remove these enter image description here

Upvotes: 0

Views: 65

Answers (2)

Sanwal Singh
Sanwal Singh

Reputation: 1793

You may use this two method to remove vertical bars in tab. Method 1:-

android:fadingEdge="none"
android:showDividers="none"

add this two line in tab xml.

Method 2:- add this one line in java code

tabHost.getTabWidget().setDividerDrawable(null);

Hope this is usefull to you.

Upvotes: 1

user2234
user2234

Reputation: 1302

Try setting the value of android:actionBarDivider value = "@null". Should work

Upvotes: 1

Related Questions