Hi.!!
I'm having trouble here with the Navigation Bar in the app. Want to either display text on the Navigation Bar or hide it totally (since it doesn't show any text on it). The code being used right now (as shown below), shows either text such as {object Object} on the Navigation Bar with/out the Back button, or it shows nothing at all on the gray colored Navigation Bar. Kindly Help!
function ApplicationTabGroup()
{
//create module instance
var mainTabGroup = Ti.UI.createTabGroup({ size:50}),
Home = require('ui/common/tabs/Home'),
RunningNow = require('ui/common/tabs/RunningNow'),
NextChange = require('ui/common/tabs/NextChange'),
ComingSoon = require('ui/common/tabs/ComingSoon'),
Xtraz = require('ui/common/tabs/Xtraz');
//create app tabs
var homeWin = new Home(L('AppTree CINEMAS!'));
var runningNowWin = new RunningNow(L('Movies Running NOW!'));
var nextChangeWin = new NextChange(L('Movies Next Week!'));
var comingSoonWin = new ComingSoon(L('Movies Coming Soon!'));
var xtrazWin = new Xtraz(L('Xtraz'));
var homeTab = Ti.UI.createTab({ title:'Home', window: homeWin });
homeWin.containingTab = homeTab;
mainTabGroup.addTab(homeTab);
var runningNowTab = Ti.UI.createTab({ title:'Running Now', window: runningNowWin });
runningNowWin.containingTab = runningNowTab;
mainTabGroup.addTab(runningNowTab);
var nextChangeTab = Ti.UI.createTab({ title:'Next Change', window: nextChangeWin });
nextChangeWin.containingTab = nextChangeTab;
mainTabGroup.addTab(nextChangeTab);
var comingSoonTab = Ti.UI.createTab({ title:'Coming Soon!', window: comingSoonWin });
comingSoonWin.containingTab = comingSoonTab;
mainTabGroup.addTab(comingSoonTab);
var xtrazTab = Ti.UI.createTab({ title:'xtraz', window: xtrazWin });
xtrazWin.containingTab = xtrazTab;
mainTabGroup.addTab(xtrazTab);
//mainTabGroup.setActiveTab(4);
return mainTabGroup;
};
module.exports = ApplicationTabGroup;
PS: Tried all platforms - Android Emulator, iPhone Simulator, Web App Browser, running in Safari in the iPhone, etc.
1 Answer
Hi, i see in your code and found that you are setting title for TAB when you create. thats why it shows up the title for once and then blank NAV BAR. try setting the window title which each tab is going to contain. that will present the NAV BAR with title.
is this solved your problem?
Your Answer
Think you can help? Login to answer this question!