"隐藏"工具栏下的状态栏可见 [英] "Hidden" Toolbar visible under status bar
问题描述
使用的 CoordinatorLayout 向下滚动时隐藏我的工具栏。
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?
的注:我的状态栏设置为半透明至有适当的材料抽屉。制作状态栏纯色是不是我要找的解决方案 - 当然,除非是这是打算如何使用的的
推荐答案
不完全知道我在做什么错了,但我可以通过以下的例子来解决此问题:
Not exactly sure what I was doing wrong but I was able to resolve this by following these examples:
<一个href=\"https://github.com/chrisbanes/cheesesquare/blob/master/app/src/main/res/layout/activity_detail.xml\" rel=\"nofollow\">https://github.com/chrisbanes/cheesesquare/blob/master/app/src/main/res/layout/activity_detail.xml
<一个href=\"https://github.com/chrisbanes/cheesesquare/blob/f9eb39d29ea057b56e270263fa26f76e0bf3e77a/app/src/main/res/layout/include_list_viewpager.xml\" rel=\"nofollow\">https://github.com/chrisbanes/cheesesquare/blob/f9eb39d29ea057b56e270263fa26f76e0bf3e77a/app/src/main/res/layout/include_list_viewpager.xml
这篇关于&QUOT;隐藏&QUOT;工具栏下的状态栏可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!