我尝试了成千上万种组合,但经过数小时的尝试,我没有得到任何结果。我正在尝试隐藏状态栏和导航栏。
这是实际结果(只有启动画面正确):
我阅读了几篇文章/问题:
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/
我尝试过的解决方案:
app.js
win.fullscreen = true / false;
win.navBarHidden = true / false;
tiapp.xml
<fullscreen>true/false</fullscreen>
<navbar-hidden>false/false</navbar-hidden>
<statusbar-hidden>true/false</statusbar-hidden>
tiapp.xml(<android xmlns:android="http://schemas.android.com/apk/res/android">
部分)
tiapp.xml是一个用于描述Titanium应用程序的XML文件。在它的<android xmlns:android="http://schemas.android.com/apk/res/android">
部分,你可以定义一些与Android平台相关的属性和配置。这些属性包括应用程序的名称、图标、版本号等等。如果你想让你的应用程序能够在Android市场上发布,那么这个文件是必不可少的。<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<application android:theme="@style/Theme.AppCompat.Translucent.NoTitleBar.Fullscreen"/>
</manifest>
</android>