布局是在状态栏和软键 [英] Layout is under StatusBar and Soft Keys

查看:88
本文介绍了布局是在状态栏和软键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道我是如何得到这个,我无法找到类似的话,但我的软件导航和状态栏都被吸收了我的布局,而不是我的布局是它们之间的配合。

我如何得到我的布局,它们之间加以区别,而不是下?

在这里输入的形象描述

编辑:

看来这是罪魁祸首。位于样式:

 &LT,项目名称=机器人:windowTranslucentStatus>真LT; /项目>
    <项目名称=机器人:windowTranslucentNavigation>真< /项目>


解决方案

就解决这个问题:

 <项目名称=机器人:windowTranslucentStatus>假LT; /项目>
<项目名称=机器人:windowTranslucentNavigation>假LT; /项目>

或者干脆删除它们。这些属性让你的状态栏和导航栏半透明的,所以这就是为什么你的布局像一个全屏幕。

I'm not sure how I got this and I can't find anything similar but my software navigation and status bar are being drawn over my layout instead of my layout being fit between them.

How do I get my layout to be drawn between between them instead of under?

Edit:

It seems this is the culprit. Located in the styles:

    <item name="android:windowTranslucentStatus">true</item>
    <item name="android:windowTranslucentNavigation">true</item>

解决方案

Just fix this:

<item name="android:windowTranslucentStatus">false</item>
<item name="android:windowTranslucentNavigation">false</item>

or simply remove them. These attributes make your StatusBar and NavigationBar semi-transparent, so that's why your layout was acting like a full screen.

这篇关于布局是在状态栏和软键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆