How do I create a window title when not using TabView?

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

I have been studying the kitchen sync app and wish to create a view that is represented in window_navbar.js. Unfortunately I can't seem to get the navbar or title to show.

I've even included the whole window_navbar.js file in my app.js file except for the line

var win = Titanium.UI.currentWindow;

Given this, my app.js looks as follows:

var win = Titanium.UI.createWindow();
//Content of window_navbar.js except for "var win..."
win.open();

1 Answer

Accepted Answer

If you want to make a drill-down, use a navigationGroup. This will provide you the navBar. If you just want to open a window, you will have to fake the navBar using a toolbar positioned at the top of the window.

— answered 2 years ago by Dan Tamas
answer permalink
2 Comments
  • Ah right, and this must also be true for the window title? Is there a way to get the background of a label or something to be rendered the same as a navigation window? I don't actually want a navigation group.

    — commented 2 years ago by Brett Ryan

  • Add a toolbar with one item.

    This item is a label.

    Set to the label the color, and shadow of the text to mimic the title.

    — commented 2 years ago by Dan Tamas

Your Answer

Think you can help? Login to answer this question!