钛:如何在非合金项目中隐藏actionBar? [英] Titanium: How to hide the actionBar in a non-Alloy project?

查看:77
本文介绍了钛:如何在非合金项目中隐藏actionBar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没问题将动作栏隐藏在Alloy项目中. 但是,如何在非合金项目中做到这一点?

I have no problem hiding the action bar in an Alloy project. However, how do I do this in a non-Alloy project?

我尝试过:

win.activity.actionBar.hide();

但这是行不通的.

推荐答案

<android xmlns:android="http://schemas.android.com/apk/res/android">            
    <manifest>
        <application android:theme="@style/Theme.AppCompat.Translucent.NoTitleBar.Fullscreen"></application>
    </manifest>
</android>

将此添加到TiApp.xml

Add this to TiApp.xml

这篇关于钛:如何在非合金项目中隐藏actionBar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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