Is there a way, how to delete actionbar (all his tabs and settings)?
I’m trying something like:
public void setUpActionBar(int selTab) {
if (thereIsSomeActionBar){
deleteThatActionBar();
}
ActionBar actionBar = getSupportActionBar();
....set up new actionbar
}
You can call
getActionBar().removeAllTabs()to remove all the tabs from theActionBar.You also can call
invalidateOptionsMenu()on yourActivityto force the re-creation of your options in theActionBar.