简体   繁体   English

适用于UDOO项目的Android 4.3隐藏导航栏

[英]Android 4.3 Hiding Navigation Bar for UDOO project

I've been developing an application on Android for UDOO which has to run as car mode. 我一直在开发针对UDOO的Android应用程序,该应用程序必须以汽车模式运行。 (I don't use kiosk mode because if user type the right password application has to end and return to launcher.) (我不使用信息亭模式,因为如果用户键入正确的密码,则应用程序必须结束并返回启动器。)

My application runs on Android 4.1 perfectly but UDOO has Android 4.3 and it doesn't work right. 我的应用程序可以在Android 4.1上完美运行,但是UDOO具有Android 4.3,并且无法正常运行。 Is there any option that refers to car mode on Android 4.3? 在Android 4.3上是否有任何涉及汽车模式的选项?

The other solution that I've found is hiding the navigation bar. 我发现的另一个解决方案是隐藏导航栏。 But Android 4.3 doesn't allow to do that. 但是Android 4.3不允许这样做。

Is there a solution for that problem on 4.3 or what can you suggest? 4.3上是否有针对该问题的解决方案,或者您有什么建议?

Try following code to hide title bar : 尝试以下代码隐藏标题栏:

android:theme="@android:style/Theme.Light.NoTitleBar"

Add your theme name instead of 'Light' 添加您的主题名称,而不是“浅色”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM