在titanium sdk 3.5.0GA上禁用默认动作栏[英] Disable the default actionbar on titanium sdk 3.5.0GA

本文是小编为大家收集整理的关于在titanium sdk 3.5.0GA上禁用默认动作栏的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我将我的钛sdk更新为3.5.0ga,但在Android上的每个窗口上都会出现默认动作栏. 有人可以告诉我如何永久禁用这个默认动作栏吗? 提前谢谢.

推荐答案

定义自定义主题设置,例如,在/platform/android/res/values/customtheme.xml上的主题,如

< ?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>
然后,在tiapp.xml上激活此主题:

<android xmlns:android="http://schemas.android.com/apk/res/android">
    <manifest>
        <application android:theme="@style/Theme.NoActionBar"/>
        <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>
    </manifest>
</android>

更多: link

本文地址:https://www.itbaoku.cn/post/1938231.html

问题描述

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.com/apk/res/android">
    <manifest>
        <application android:theme="@style/Theme.NoActionBar"/>
        <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>
    </manifest>
</android>

for more see : Link