Reputation: 4259
I am building an android app, for 3.0 with a compatibility package. I have an action bar, that contains 3 tabs. Also in the action bar I have the search, add and the icon for the overflow items. The problem is when I am in portrait mode and I click on the search icon (it expends itself for text input), so it is over the tabs. I saw in the YouTube app for tablets, that when such thing happens the tabs are somehow hidden, and when you click on the "x" to close the search view they are shown again. Does someone knows how this hiding and showing of the tabs in the action bar is done? I can't find anything about it.. I am testing on an actual device, motorola xoom.
Upvotes: 2
Views: 2044
Reputation: 28509
I imagine they are using this method to show/hide the tabs:
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
Upvotes: 2