android– 无法隐藏标题栏钛合金

android– 无法隐藏标题栏钛合金,第1张

概述我在使用AlloyMVC的TitaniumAppcelerator中遇到了问题.此问题包含以下内容(请参见图片)我无法删除找到应用名称和徽标的黑条.我在设备上运行应用程序(谷歌Nexus,没有模拟器)我已尝试以下方法删除此内容:XML:<Alloy><Window></Window></Alloy>TSS:"Window":{

我在使用Alloy MVC的Titanium Appcelerator中遇到了问题.此问题包含以下内容(请参见图片)

我无法删除找到应用名称和徽标的黑条.我在设备上运行应用程序(谷歌Nexus,没有模拟器)

我已尝试以下方法删除此内容:

XML:

<Alloy>    <Window>    </Window></Alloy>

TSS:

"Window":{    navbarHIDden:true,    fullscreen:true,    backgroundcolor:"Orange",    orIEntationModes:[Ti.UI.PORTRAIT],}

TiApp.XML:

<statusbar-style>default</statusbar-style><statusbar-hIDden>true</statusbar-hIDden><fullscreen>true</fullscreen><navbar-hIDden>true</navbar-hIDden>

但是这些选项中没有一个能够隐藏这个黑条.在iOS模拟器中,它仅通过将属性全屏设置为true来删除导航栏

还有其他选择可以解决这个问题吗?提前致谢!

解决方法:

可能是Actionbar正在展示吗?试着隐藏它.

To modify the theme to hIDe the action bar:

Add a custom theme file to your project:

platform/androID/res/values/custom_theme.xml:

<?xml version="1.0" enCoding="utf-8"?> <resources>    <style name="theme.NoActionbar" parent="@style/theme.Titanium">        <!-- Depending on the parent theme, this may be called androID:windowActionbar instead of windowActionbar -->        <item name="windowActionbar">false</item>    </style> </resources>

取自:http://docs.appcelerator.com/titanium/3.0/#!/guide/Android_Action_Bar

总结

以上是内存溢出为你收集整理的android – 无法隐藏标题栏钛合金全部内容,希望文章能够帮你解决android – 无法隐藏标题栏钛合金所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1120138.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存