本文介绍了禁用 Titan sdk 3.5.0GA 上的默认操作栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
限时送ChatGPT账号..我将 Titanium sdk 更新为 3.5.0GA,但在 Android 上的每个窗口上都存在一个默认操作栏.谁能告诉我如何永久禁用此默认操作栏?提前致谢.
解决方案定义自定义主题的设置,例如,你的主题在/platform/android/res/values/customtheme.xml 像
<代码><?xml version="1.0" encoding="utf-8"?><资源><style name="Theme.NoActionBar" parent="@style/Theme.AppCompat"><item name="windowActionBar">false</item><item name="android:windowNoTitle">true</item></风格></资源>
然后,在您的 tiapp.xml 上激活此主题:
<清单><application android:theme="@style/Theme.NoActionBar"/><使用-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/></清单>
更多见:链接>
I updated my Titanium sdk to 3.5.0GA, but there exits a default action bar on every window on Android. Can anyone please tell me how to permanently disable this default action bar? Thanks in advance.
解决方案Define the settings for your custom theme, for example, your theme at /platform/android/res/values/customtheme.xml like
< ?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.NoActionBar" parent="@style/Theme.AppCompat">
<item name="windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
</resources>
Then, activate this theme on your tiapp.xml:
<android xmlns:android="http://schemas.android/apk/res/android">
<manifest>
<application android:theme="@style/Theme.NoActionBar"/>
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>
</manifest>
</android>
for more see : Link
这篇关于禁用 Titan sdk 3.5.0GA 上的默认操作栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
更多推荐
[db:关键词]
发布评论