I use the toolbar and I need to make a slow hiding and also a disclosure, when using actionBar.hide () it appears sharply and disappears just as sharply

    1 answer 1

    Need to use animation.

    Example :

    toolbar.animate().translationY(-toolbar.getBottom()).setInterpolator(new AccelerateInterpolator()).start();