Action bar tabs fill width
-
21-12-2019 - |
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:
Does anyone knows a fix or a workaround so the tabs can fill the width of the actionbar?
Solution
This simple setting works for me:
getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow