How to properly hide&show the actionbar using the new design library API?
Background Suppose I have these elements in the activity: actionbar (actually a Toolbar) tabs (using TabLayout ) ViewPager, with fragments. each fragment has ListVIew/RecyclerView. I wish to have the same behavior as on many apps, that when scrolling, the action bar will hide or show. A perfect example for it is how the Play Store scrolling works. Something like this (but with ListView in the fragments of course) : The problem I've found the " Android-ObservableScrollView " library which shows how to do it for many types of scrolling views, but it doesn't handle the case of the new TabLayout