Search code examples
androidmobiletitanium-mobileappcelerator-mobilehybrid-mobile-app

Titanium: How to hide the actionBar in a non-Alloy project?


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

I tried this:

win.activity.actionBar.hide();

But it doesn't work.


Solution

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

    Add this to TiApp.xml