Alex Rivera | Logout

Make Tabs on ActionBar scroll when reach limit, rather than create a dropdown-list

Asked 2012-02-13T20:29:17.963
13

As the title suggests, I have an Android 4.0 Tablet app, that uses the Actionbar and tab mode.

If I add any more than 4 or 5 tabs to the action bar, a dropdown list is created instead. I have read the documentation, which states, "Note: In some cases, the Android system will show your action bar tabs as a drop-down list in order to ensure the best fit in the action bar."

Was just wondering if it is possible to override the default behavior and get the actionbar to scroll the items? The design document http://developer.android.com/design/patterns/actionbar.html talks about scrollable tabs, but I can't seem to find any information on them other than in the design document.

Edit
Report

1 Answer

-1

The UI works the way it is for a reason. It is extremely confusing to have a scrollable set of tabs. There is a good chance that it won't be clear at all that there are more tabs available on the right, and the user will never know they can scroll the tabs to get to more features.

I recommend sticking with how the platform is designed to work. It generally does things for a reason.

answered 2012-03-05T05:40:44.137

Your Answer