Search code examples
androidandroid-layoutmaterial-designandroiddesignsupport

"Hidden" Toolbar visible under status bar


Using the CoordinatorLayout to hide my toolbar when scrolling down.

The toolbar thinks it's hidden - But it's not.

Does anyone understand why this is happening?

enter image description here

Note: I have the status bar set to translucent to have proper material drawers. Making the status bar a solid color is not the solution I'm looking for - Unless of course that is how this was intended to be used.


Solution

  • Not exactly sure what I was doing wrong but I was able to resolve this by following these examples:

    https://github.com/chrisbanes/cheesesquare/blob/master/app/src/main/res/layout/activity_detail.xml

    https://github.com/chrisbanes/cheesesquare/blob/f9eb39d29ea057b56e270263fa26f76e0bf3e77a/app/src/main/res/layout/include_list_viewpager.xml