I use the toolbar inside ListFragment in Android and can hide / show it while scrolling. I implement AbsListView.OnScrollListener
and use this code inside:
@Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
So the toolbar is hidden when I scroll down and show if I scroll up. But the animation is very "difficult", and I would like to have a smoother transition. It should look like this (without tabs, just a toolbar): https://cms-images.idgesg.net/images/article/2014/10/playscroll-100509755-large.gif
source share