I want to show or hide my action bar more smoothly.. Currently i'm doing this where I my scroll state of the recycler view in my activity changes.
if (scrollState == ScrollState.UP) {
if (mActionBar.isShowing()) {
mActionBar.hide();
}
} else if (scrollState == ScrollState.DOWN) {
if (!mActionBar.isShowing()) {
mActionBar.show();
}
}
I want a smoother animation, as in the Google Play app.
Styles.xml
<style name="AppTheme" parent="Theme.AppCompat.Light">
<item name="windowActionBar">false</item>
</style>
Initializing the action bar
setSupportActionBar(mToolbar);
mActionBar = getSupportActionBar();