【发布时间】:2017-02-14 15:12:38
【问题描述】:
我正在 Appcelerator Titanium 中创建应用程序。我想让它完全全屏,但我无法隐藏导航栏(返回、主页按钮)。我根据网上的信息做了所有的事情,但是没有用。
在 tiapp.xml 中:
<fullscreen>true</fullscreen>
<navbar-hidden>true</navbar-hidden>
/*** ........ ***/
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:versionCode="1" android:versionName="1.0">
<application android:theme="@style/Theme.AppCompat.Translucent.NoTitleBar"/>
</manifest>
</android>
窗口是这样创建的:
myApp.window = Ti.UI.createWindow({
backgroundColor: 'white',
theme: "Theme.AppCompat.NoTitleBar"
});
或者像这样:
myApp.window = Ti.UI.createWindow({
backgroundColor: 'white',
theme: "Theme.AppCompat.Translucent.NoTitleBar"
});
导航栏仍然可见。我错过了什么?
【问题讨论】:
-
我只是把它扔掉了,但是你清理了你的项目了吗?我发现在 tiapp.xml 中修改时必须清理
标签: android titanium appcelerator appcelerator-titanium appcelerator-mobile