在4.4.2上完全禁用/隐藏状态栏 [英] Completely Disable/Hide Status Bar on 4.4.2

查看:101
本文介绍了在4.4.2上完全禁用/隐藏状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在为老年人开发启动器应用程序,该应用程序具有非常简单的用户界面,并且我们不希望显示状态栏或通知抽屉.

We are developing a launcher app for elderly people which has a very easy UI and we do not want to show status bar or notification drawer.

现在,我尝试禁用状态栏,但是当我从屏幕上方下拉时,它似乎重新出现.如果我第二次下拉通知抽屉打开.有没有办法完全禁用状态栏?

Now i tried to disable Status Bar but it seems to re-appear when i pull down from the upper side of the screen. And if i pull-down for the second time notification drawer is opened. Is there a way to completely disable Status Bar?

我检查了以下链接上的文档,但我认为没有解决方案.在API级别16中,我们可以完全禁用它,但在api级别19中则不能. https://developer.android.com/training/system-ui/status .html#41

I checked the documentation on the following links but i think no solution is present. In API level 16 we were able to disable it completely but not in api level 19. https://developer.android.com/training/system-ui/status.html#41

https://developer.android.com/training/system- ui/immersive.html#nonsticky

推荐答案

您可以在状态栏上方绘制一些视图并使用所有输入事件.这样可以防止状态扩展.

You can draw some view above status bar and consume all input events. It prevent the status from expanding.

此处有更多详细信息: 永久隐藏Android状态栏

More details here: Permanently hide Android Status Bar

对我有用.

这篇关于在4.4.2上完全禁用/隐藏状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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