Question

I'm implementing android tabs in the actionbar but seems when displaying the screen on tablet i have a weird issue. The tabs look like this: enter image description here

Does anyone knows a fix or a workaround so the tabs can fill the width of the actionbar?

Was it helpful?

Solution

This simple setting works for me:

getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top