Remove default titlebar on iphone and android and replace with image

You must Login before you can answer or comment on any questions.

I am looking at removing the default title bar on windows in both iphone and android, and to replace with an image (would be a little higher then the default titlebar and must be full width), and would still need the back buttons.

Another question: removing background default on ui buttons (the ones on titlebar)

Any help is appreciated.

— asked 10 months ago by Dave E
0 Comments

2 Answers

Hi, To remove title bar just do following changes in tiapp.xml file.

<navbar-hidden>true</navbar-hidden>
Another option is
var win = Ti.UI.createWindow({
url : '',
navBarHidden : true
});
You can place or add a image view at top of the window , keeping its width 100%. That will be your custom title bar.

— answered 10 months ago by Moiz Chhatriwala
answer permalink
3 Comments
  • Dont forget to clean and build the application if you are doing changes in tiapp.xml.

    — commented 10 months ago by Moiz Chhatriwala

  • You're also going to have to custom build each back button. You can still use the tab functionality, your "back" button will just have to have an event listener with "Titanium.UI.currentWindow.close()"

    — commented 10 months ago by Josh Lewis

  • I have removed the title bar with the create window option above, but the scroll view on the window now goes over the tabgroup at the bottom and the tabs can't be clicked. Is it there a way I can add a zIndex to the tabgroup, or change the navbarhidden so it doesn't effect the tabgroup.

    — commented 10 months ago by Dave E

I have removed the title bar with the create window option above, but the scroll view on the window now goes over the tabgroup at the bottom and the tabs can't be clicked. Is it there a way I can add a zIndex to the tabgroup, or change the navbarhidden so it doesn't effect the tabgroup.

Your Answer

Think you can help? Login to answer this question!