Monica Olsson
Monica Olsson

Reputation: 1

How do I hide tabs or TabsAdapter using ActionBarSherlock

How do I hide tabs dynamically? I'm using ActionBarShelock to make swipe tabs and SearchView. When I show the search results in a listview I want to hide the whole row of tabs. Does anyone know if this is possible?

Upvotes: 0

Views: 387

Answers (1)

Raúl Juárez
Raúl Juárez

Reputation: 2159

If you only want to hide tabs, you can call:

getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);

when you're done you can go back to tabs mode:

getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);

Upvotes: 1

Related Questions