I think i tried thousands of combinations, but after hours and hours i did not get any results. I'm trying to hide the STATUS BAR and the NAVIGATION BAR.
This is the actual result (only the splashscreen is ok) :
我读了几张票/问题。
https://www.appcelerator.com/blog/2014/08/hiding-the-android-actionbar/
https://www.appcelerator.com/blog/2016/03/titanium-5-2-0-wrap-up-of-new-features-for-android/
我尝试过的解决方案
win.fullscreen = true / false;
win.navBarHidden = true / false;
<fullscreen>true/false</fullscreen>
<navbar-hidden>false/false</navbar-hidden>
<statusbar-hidden>true/false</statusbar-hidden>
<android xmlns:android="http://schemas.android.com/apk/res/android">
节)<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<application android:theme="@style/Theme.AppCompat.Translucent.NoTitleBar.Fullscreen"/>
</manifest>
</android>
答案 0 :(得分:3)
您可以在窗口级别使用一些内置主题来隐藏Android上的导航/状态栏。
https://wiki.appcelerator.org/display/guides2/Android+Themes
所以..您可以这样设置(经典):
var win = Ti.UI.createWindow({
theme: "Theme.AppCompat.Translucent.NoTitleBar.Fullscreen"
});
在Alloy中,您可以通过在app.tss
中进行设置来轻松地进行全局设置:
'Window': {
theme: "Theme.AppCompat.Translucent.NoTitleBar.Fullscreen"
}