禁用全屏幕的Andr​​oid通知栏(在SGIII) [英] Disable Android Notification Bar in Full Screen (in SGIII)

查看:285
本文介绍了禁用全屏幕的Andr​​oid通知栏(在SGIII)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在三星Galaxy S3,即使我的应用程序设置为全屏,这使得通知栏不可见,如果我从屏幕一侧的边缘轻扫,这一行动将使通知栏再次出现,允许用户在全屏应用程序将其展开。
有没有什么办法来禁用它,或取消通知栏的扩大?
问题是,我已经覆盖了整个屏幕列表视图,如果我轻扫,滚动的物品,每次我这样做,从最边缘,由于滚动更快的本能动作时间,然后通知栏再次出现。
我试过的技巧,例如在边缘产生叠加窗口,但没有工作在所有的SG3。

In Samsung Galaxy S3, even though my app is set to be full screen, and this makes the notification bar not to be visible, if I swipe from the very edge of the screen side, this action will make the notification bar to appear again, allowing the user to expand it over the full screen app. Is there any way to disable this, or to cancel the expand of the notification bar? The problem is that I have a listview covering the whole screen, and if I swipe to scroll the items, every time I do it from the very edge due to the instinctive action of scrolling faster, then the notification bar appears again. I've tried tricks such as creating an overlay window on the edge, but not working at all for SG3.

感谢

推荐答案

如果您还没有尝试过,你可能会尝试使用查看标记隐藏导航​​, SYSTEM_UI_FLAG_HIDE_NAVIGATION ,记录这里

If you haven't tried already, you might attempt to use the View flag for hiding navigation, SYSTEM_UI_FLAG_HIDE_NAVIGATION, documented here.

但是它可能会注意到这个发现在其描述的底部是很重要的:

However it may be important to note this found at the bottom of their description :

有一个限制:由于导航控件是如此的重要,最少的用户交互将导致他们立即重新出现。发生这种情况时,该标记和使这两个元素在同一时间再次出现SYSTEM_UI_FLAG_FULLSCREEN会自动清零。

There is a limitation: because navigation controls are so important, the least user interaction will cause them to reappear immediately. When this happens, both this flag and SYSTEM_UI_FLAG_FULLSCREEN will be cleared automatically, so that both elements reappear at the same time.

这可能与你看到的。我很难相信有办法解决......我只是想和每一个应用程序全屏我对我的行为S3这种完全相同的方式。

which is probably related to what you're seeing. I find it hard to believe there's a way around this... I just tried and every fullscreen app I have on my S3 behaves this exact same way.

我怀疑,如果有办法解决它(假设上述不工作,我不希望它),它会被认为是由Android团队中的错误,我会建议对吧。

I suspect that if there was a way around it (assuming the above doesn't work, which I don't expect it to), it would be considered to be a bug by the Android team, and I would advise against it.

这篇关于禁用全屏幕的Andr​​oid通知栏(在SGIII)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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