Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using TabWidget.setDividerDrawable()?

Has anyone had any success with TabWidget.setDivider()? I'm not sure it does what I'm assuming: gives you a chance to supply a drawable to be drawn between each tab instance?

mTabHost.getTabWidget().setDividerDrawable(R.drawable.dividerDrawable);

this does not appear to do anything. Looking at the tab drawable resources in the android project shows that the dividers are actually drawn into the tab images themselves - is this supposed to work or is it not supported?

like image 907
user291701 Avatar asked Nov 14 '22 07:11

user291701


1 Answers

Call that before you set the content of the tabs.Or It would crash. similar answer is here

like image 175
noman404 Avatar answered Jan 08 '23 16:01

noman404