禁用 Titan sdk 3.5.0GA 上的默认操作栏

编程入门 行业动态 更新时间:2024-10-09 22:17:41
本文介绍了禁用 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:关键词]

本文发布于:2023-04-17 23:20:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/923602.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:操作   sdk   Titan   GA

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!