Search code examples
androidactionbarsherlock

How to make ActionBar Sherlock invisible/visible?


I know that I could hide and show ABS like:

getSupportActionBar().hide();
getSupportActionBar().show();

However this makes it hide and show with animation and I don't like it. I need it to hide and show immediately like if set visibility property to its view (View.VISIBLE/View.GONE/View.INVISIBLE). How could I achieve that? Or is there a way to hide()/show() without animation (show()/hide() doesn't accept any parameters)? Or is there a way to get ABS view so I could use setVisibility() on it?


Solution

  • No, you can not disable Actionbar show/hide animation.