Reputation: 1
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
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