I am making a custom animation which requires that the page content slides synchronously with my ActionBar. For that, I need to know the animation duration of hide() and show() actions.
Runnable animationRunnable = new Runnable() {
@Override
public void run() {
getSupportActionBar().hide();
animate(topSlideImage).setDuration(ANIMATION_DURATION).translationYBy(-sectionHeight);
}
};
My animation duration is 600ms
Apart from knowing, I would want to change (duration, interpolator etc) ActionBar hide and show animations, any ideas on how to do the same.
Edit #1
I dig into the ActionBarImpl code and found that hide()/show() duration is 250 ms, and it internally uses cubic interpolator.
Any ideas on how to use a custom animation for hiding and showing ActionBar ?