Skip to content Skip to sidebar Skip to footer

Can't Hide Titlebar Titanium With Alloy

I have encounterd a problem in Titanium Appcelerator using Alloy MVC. This problem contains the following(see image) I can't remove the black bar where the app name and logo is fo

Solution 1:

If you're using Titanium SDK 3.3.0, the Titanium theme, which is one of the default themes, now hides the action and status bar. To use it, just add this to your tiapp.xml.

<androidxmlns:android="http://schemas.android.com/apk/res/android"><manifest><applicationandroid:theme="@style/Theme.Titanium"/></manifest></android>

You can read more about this and other themes that Titanium has for Android here: Android Themes.

Solution 2:

Is it the ActionBar that's showing perhaps? Try hiding it.

To modify the theme to hide the action bar:

  1. Add a custom theme file to your project:

platform/android/res/values/custom_theme.xml:

<?xml version="1.0" encoding="utf-8"?><resources><stylename="Theme.NoActionBar"parent="@style/Theme.Titanium"><!-- Depending on the parent theme, this may be called android:windowActionBar instead of windowActionBar --><itemname="windowActionBar">false</item></style></resources>

Taken from: http://docs.appcelerator.com/titanium/3.0/#!/guide/Android_Action_Bar

Solution 3:

I just added the code below in my TiApp.xml to hide the action bar that is where the name of my app and logo of Titanium were

<androidxmlns:android="http://schemas.android.com/apk/res/android"><manifest><applicationandroid:theme="@style/Theme.Titanium"/></manifest>

You can hide the status bar too (where the clock, battery level, notifications, etc. are) by adding the statusbar line

<fullscreen>false</fullscreen>
<statusbar-hidden>true</statusbar-hidden>
<analytics>true</analytics>

Post a Comment for "Can't Hide Titlebar Titanium With Alloy"