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

查看:85
本文介绍了在Titanium SDK 3.5.0GA上禁用默认操作栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Titanium 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>

有关更多信息,请参见:链接

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

这篇关于在Titanium SDK 3.5.0GA上禁用默认操作栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆