Ori*_*ion 3 android titanium appcelerator titanium-alloy
我在使用Alloy MVC的Titanium Appcelerator中遇到了问题.此问题包含以下内容(请参见图片)

我无法删除找到应用名称和徽标的黑条.我在设备上运行应用程序(谷歌Nexus,没有模拟器)
我已尝试以下方法删除此内容:
XML:
<Alloy>
<Window>
</Window>
</Alloy>
Run Code Online (Sandbox Code Playgroud)
TSS:
"Window":
{
navBarHidden:true,
fullscreen:true,
backgroundColor:"Orange",
orientationModes:[Ti.UI.PORTRAIT],
}
Run Code Online (Sandbox Code Playgroud)
TiApp.XML:
<statusbar-style>default</statusbar-style>
<statusbar-hidden>true</statusbar-hidden>
<fullscreen>true</fullscreen>
<navbar-hidden>true</navbar-hidden>
Run Code Online (Sandbox Code Playgroud)
但是这些选项中没有一个能够隐藏这个黑条.在iOS模拟器中,它仅通过将属性设置fullscreen为true来删除导航栏
还有其他选择可以解决这个问题吗?提前致谢!
Lal*_*hez 13
如果您使用的是Titanium SDK 3.3.0,则Titanium主题(默认主题之一)现在会隐藏操作和状态栏.要使用它,只需将其添加到tiapp.xml即可.
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<application android:theme="@style/Theme.Titanium"/>
</manifest>
</android>
Run Code Online (Sandbox Code Playgroud)
您可以在此处详细了解Titanium为Android提供的此主题和其他主题:Android主题.
| 归档时间: |
|
| 查看次数: |
6326 次 |
| 最近记录: |