My Problem is:
If you show and hide the ActionBar multiple times maybe you have noticed that the first showing is not animated. From then on showing and hiding are animated.
My issue is described described in this stackoverflow thread, in the section refereed to as ADDON (This thread does not solve my problem) - stackoverflow.com/a/14167949/4424557 - I am not facing the same issue as this user, although the point made by the answerer explains my issue
How do I fix the above, so that even the first time it is revealed animation does take place?
To explain the animation I'm referring to -
Look at this youtube clip
https://www.youtube.com/watch?v=6gZ_y7MqEGM
(The animation above works, but in my case on primary reveal the animation doesn't occur)
The code I'm using to reveal the actionbar is below:
android.support.v7.app.ActionBar actionBar;
actionBar = getSupportActionBar();
actionBar = getSupportActionBar();
actionBar.setDisplayShowTitleEnabled(false);
actionBar.setDisplayUseLogoEnabled(false);
actionBar.setDisplayHomeAsUpEnabled(false);
LayoutInflater mInflater = LayoutInflater.from(this);
View mCustomView = mInflater.inflate(R.layout.custom_actionbar, null);
actionBar.setCustomView(mCustomView);
actionBar.setDisplayShowCustomEnabled(true);
actionBar.hide();
Or
actionBar.show();