
工具栏认为它是隐藏的 – 但事实并非如此.
有谁知道为什么会这样?
注意:我将状态栏设置为半透明以具有适当的材料抽屉.使状态栏成为纯色不是我正在寻找的解决方案 – 当然除非这是打算如何使用.
解决方法 我尝试将状态栏颜色设置为primarydark,然后在打开抽屉时状态栏不能透明,否则工具栏会再次出现.经过两天的工作,我发现如果我在CoordinatorLayout中删除了androID:fitsSystemwindows =“true”,它就解决了.
<androID.support.v4.Widget.DrawerLayout xmlns:androID="http://schemas.androID.com/apk/res/androID"xmlns:app="http://schemas.androID.com/apk/res-auto"xmlns:tools="http://schemas.androID.com/tools"androID:ID="@+ID/drawer_layout"androID:layout_wIDth="match_parent"androID:layout_height="match_parent"androID:fitsSystemwindows="true"tools:openDrawer="start"><-- CoordinatorLayout is root of @layout/app_bar_home--><include layout="@layout/app_bar_home" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" /><androID.support.design.Widget.NavigationVIEw androID:ID="@+ID/nav_vIEw" androID:layout_wIDth="wrap_content" androID:layout_height="match_parent" androID:layout_gravity="start" androID:fitsSystemwindows="true" app:headerLayout="@layout/nav_header_home" app:menu="@menu/activity_home_drawer" />总结
以上是内存溢出为你收集整理的android – 状态栏下可见“隐藏”工具栏全部内容,希望文章能够帮你解决android – 状态栏下可见“隐藏”工具栏所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)