Tabs in Android 2.2 are full width.


Tabs in Android 4.2 nexus 7, tabs do not occupy the full width. Both have the same code. using actionBarsherlock
for example
final ActionBar actionBar = getSupportActionBar();
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
Tab tab1 = actionBar.newTab().setText("TabTitle1")
.setTabListener(new MyTabListener(null));
actionBar.addTab(tab1);
What am I missing? If this is fixed in the subject! I just want the tabs to occupy the full available width
source
share