I am currently designing an application for iOS and Android where on one tab there are a few rows and for one of the rows it goes to a RSS feed for news. I have used the sample RSS feed code within the application and it works great except the back button in the upper left hand corner as well as the tabs disappear on the bottom (when looking at it in iOS).
Does anyone know what code to put in or tweak so that both the back button and tabs on the bottom stay?
3 Answers
You are probably opening a modal or standalone window instead of adding it to the current tab's stack and opening it through Tab.open().
If you can show me the part of the code where you're creating and opening the RSS feed window, I can show you how to modify it to open it inside the tab.
Or, check out the documentation for Titanium.UI.Tab.open method.
If you open it through win.open() it will overlap the views. To add it to the window stack you gotta tabGroup.activeTab.open(win); this will push it to the top of the stack and open it, this also generates an auto-back button for you.
Its because this new Window().open();, this will open the window in standalone mode and fill the screen (overlaps your TabGroup);
So you basically add two windows..
this keeps your tabGroup
var win = Titanium.UI.createWindow({ url:e.rowData.test, title:e.rowData.title }); Titanium.UI.currentTab.open(win,{animated:true});this overlaps it all
new Window().open();
Your Answer
Think you can help? Login to answer this question!