ActionbarSherlock: hide the action bar when displaying tabs

My user interface uses tabbed ABS ( ActionBar.NAVIGATION_MODE_TABS ) and a bunch of mock fragments loaded for each tab.

There is one tab in which I need to hide the ActionBar (to return some screen space) for the user interface, but call getSupportActionBar().hide(); will lock the tabs along with the ActionBar.

I was wondering if there is anything at all where I could hide the action bar without affecting the tabs?

EDIT: Actually, think about it, the action bar does nothing but display the branding / icon of the application. Therefore, I would not mind completely hiding the ActionBar and just show tabs.

+3
source share
1 answer

This is called a minimized action bar. It will be automatically hidden if you do not see the title and icon of the house:

  getSupportActionBar().setDisplayShowHomeEnabled(false); getSupportActionBar().setDisplayShowTitleEnabled(false); 

If you want to have both tabs and actions, you can use the split action bar and have actions (menu) at the bottom.

+8
source

All Articles