如何删除 Android 上的系统栏,我的意思是,所有
我对 Android 编程还很陌生,几周前就开始了。 Stackoverflow 这是我自 android 第一天以来最好的新油炸。第一次,我想真正寻求帮助,而不是在其他地方阅读它,主要是因为我无法在“任何地方”找到我的问题的答案。
我正在使用以下方法删除 Android Activity 中的系统栏:
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
还对我的清单进行了修改,以包含“@android:style/Theme.NoTitleBar.Fullscreen”。
我的设备 Archos 70(我被迫在这个设备上工作)在右侧有一个额外的栏,我不能允许启用它,因为我希望我的应用程序强制全屏并且不允许用户进入返回主屏幕(这是学校指南,我们希望让用户继续使用学校应用程序)。
关于如何删除这个额外的(每个设备)栏有什么建议吗?
(我无法发布图像,但您可以在 http:// 看到我在说什么www.brunotereso.net/temp/bar.jpg
/干杯
I'm pretty new with Android programming, started a few weeks ago. Stackoverflow it's my new best fried since android day 1. For the 1st time, I would like to actually ask for help instead of reading it somewhere else, mostly because I can't find the answer to my problem 'anywhere'.
I'm removing system bars at my Android Activity using:
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
Also did a modification on my Manifest to include "@android:style/Theme.NoTitleBar.Fullscreen".
My device, Archos 70 (and I'm forced to work on this one), have an extra bar at the right side, which I can't allow to be enable because I want my App to force fullscreen and dont allow users to go back to home screen (it's a school guide and we want to keep users on the school app).
Any advice on how to remove this extra (per-device) bars?
(I can't post images, but you can see what I'm talking about at http://www.brunotereso.net/temp/bar.jpg
/cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
正如您所看到的,对于其他答案,如果没有 root 权限,则无法删除导航栏。
但如果您下载 SureLock。使用该应用程序,您可以使您想要的应用程序始终运行,并且无法更改该应用程序,只能通过密码。
希望这对您有帮助。
As you can see, for the other answers, it is not possible remove the navigation bar without being root permissions.
But maybe you don't need to remove it if you download SureLock. With that app you can make that always the application you want will be running and there is no way to change this application, only by a password.
Hope this helps to you.
与 ARCHOS 联系,因为该栏不是标准 Android 环境的一部分。我怀疑它无法删除,但这只是一个猜测。
请记住,Android 3.x 上的系统栏无法删除,除非通过自定义固件。系统栏与状态栏和 ARCHOS 侧栏的作用相同,用户必须能够返回主屏幕、按“返回”按钮等。
我强烈建议您考虑解决问题的替代方法(例如,将“学校指南”设为主屏幕),或者计划与某人合作构建您自己的自定义固件。
Talk to ARCHOS, as that bar is not part of the standard Android environment. I suspect that it cannot be removed, but that is just a guess.
Bear in mind that the system bar on Android 3.x cannot be removed, except perhaps by custom firmware. The system bar fills the same role as does the status bar and this ARCHOS side bar, and users must be able to return to the home screen, press the BACK button, etc.
I strongly encourage you to consider alternative approaches to your problem (e.g., make the "school guide" be the home screen), or plan on working with somebody to build your own custom firmware.
我认为您无法隐藏它,因为这相当于隐藏其他设备上的硬按钮。你能做的就是应对他们的压力。
I don't think you can hide that since that would be equivalent to hiding the hard buttons on other devices. What you could do is handle their presses.
这是这个问题的最新答案。
该栏正式称为“导航”栏。您可以在此处阅读同一问题的答案:< a href="https://stackoverflow.com/questions/12804642/android-tablet-navigation-bar-wont-hide">Android 平板电脑导航栏不会隐藏。简而言之 - 您需要 root 设备并安装 BusyBox 和 HideBar。
该方法并不太困难,但它涉及一些风险,可能会使您的设备变砖并错误地安装 BusyBox,这可能会让事情变得有点棘手,尽管不太可能丢失您任何信息。此外,您的应用程序可能会陷入僵局,无法恢复栏的可见性 - 例如,如果 1 您的 GUI 不提供关闭选项,2 您的应用程序在启动时自动启动,3 HideBar 不提供“不允许以任何方式重新显示导航栏,并且 4 HideBar 在启动时隐藏导航栏。
快乐黑客;)
Here is a bit up to date answer to this question.
That bar is officially referred to as "navigation" bar. You can read answers to the same question over here : Android tablet navigation bar won't hide. In short - you need to root the device(s) and install BusyBox and HideBar.
The method is not too difficult, but it involves some risk of bricking your device and getting the installation of BusyBox wrong, which could get things a bit tricky, although is very unlikely to loose you any information. Also, you could get into a stalemate with your application where you can't restore the visibility of the bar - for example if 1 your GUI doesn't provide a close option, 2 your app start automatically on start-up, 3 HideBar doesn"t allow any way of re-displaying the navigation bar and 4 HideBar hids the navigation bar on startup.
Happy hacking ;)