如何禁用Android平板电脑4.0的设置按钮 [英] How to disable the settings button in android tablet 4.0

查看:341
本文介绍了如何禁用Android平板电脑4.0的设置按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建哪些要求是全屏的应用程序。按我的意思是全屏,根据下面的图片,在那里我有橙色盒装整个区域应该被删除。但是,从搜索答案,也没有办法,能做到这一点。或者,也许有?但大多数其他的说,4.0的prevents这一个。所以,我只好重写返回键和home键。第三个按钮只有函数时,其他应用程序正在运行,所以我不必重写,因为我将要运行其他应用程序。我把它作为家庭应用,因为我解决了home键问题。

I'm creating an app which is required to be fullscreen. By what I mean fullscreen is that, based on the image below, the whole area where I boxed with orange should be removed. But from searching answers, there is no way that could do that. Or maybe there is? But mostly other said that 4.0's prevents this one. So, I'll just have to override the back button and home button. The third button only functions when other apps are running, so i dont have to override that since I will be running other applications. I made it as a home app as my solution to the home button problem.

我的问题是,我怎么能覆盖设置按钮(或者是我使用这个正确的术语)?一个我用紫色盒装。
因为我不希望用户与那些乱七八糟无论是。
也许有我在其中可以覆盖的方法呢?

My question is, how can i override the Settings button (or did i use the right term for this)? The one I boxed with purple. Because I don't want the user to mess with that either. Maybe there are methods in which i can override with?

任何帮助将很大。谢谢

推荐答案

您可以设置一个低姿态为您的系统栏,以便它不是那么明显,但是当涉及到​​平板电脑,你不能真正摆脱它

You can set a low profile for your system bar so that it's not so noticeable, but when it comes to tablets, you can't actually get rid of it.

从官方 DOC

该SYSTEM_UI_FLAG_LOW_PROFILE标志取代了STATUS_BAR_HIDDEN
  旗。设置后,此标志启用系统的低调模式
  酒吧或导航栏。导航按钮暗淡和其他元素
  该系统酒吧还隐藏。启用这是创造更多的有用
  身临其境的游戏没有分心系统导航按钮。

The SYSTEM_UI_FLAG_LOW_PROFILE flag replaces the STATUS_BAR_HIDDEN flag. When set, this flag enables "low profile" mode for the system bar or navigation bar. Navigation buttons dim and other elements in the system bar also hide. Enabling this is useful for creating more immersive games without distraction for the system navigation buttons.

该SYSTEM_UI_FLAG_VISIBLE标志取代了STATUS_BAR_VISIBLE标志
  要求系统栏或导航栏是可见的。

The SYSTEM_UI_FLAG_VISIBLE flag replaces the STATUS_BAR_VISIBLE flag to request the system bar or navigation bar be visible.

该SYSTEM_UI_FLAG_HIDE_NAVIGATION是要求一个新的标志
  导航栏完全隐藏。请注意,这仅适用于该
  一些手机的导航栏中的(不隐藏系统
  平板电脑吧)
。导航栏返回尽快观为
  系统接收用户输入。这样,这种模式是有用主要用于
  视频播放或在其中需要在整个屏​​幕其他情况下,但
  用户输入不是必需的。

The SYSTEM_UI_FLAG_HIDE_NAVIGATION is a new flag that requests the navigation bar hide completely. Be aware that this works only for the navigation bar used by some handsets (it does not hide the system bar on tablets). The navigation bar returns to view as soon as the system receives user input. As such, this mode is useful primarily for video playback or other cases in which the whole screen is needed but user input is not required.

这篇关于如何禁用Android平板电脑4.0的设置按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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