Icons in "More tab" disappearing

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

I have a tabGroup with more than 4 tabs, so it's making use of the More tab. Inside this tab, there are two sections (rows) with their respective custom icons.

When I open one of the windows respective to these sections and come back to the tableview, everything is ok. However, if I open another window inside the last one -this is, a second level window- and then I come back to the parent and finally tableview, the icon of the section that I have opened is missing.

This behavior is happening with both sections.

Resuming flows:

  • More tab -> Open section -> Back to more tab >>> OK

  • More tab -> Open section -> Open window inside section -> Back to section -> Back to More tab >>> MISSING SECTION ICON IN TABLEVIEW

Note that I'm using a Tweetanium like architecture, and opening the windows this way:

var addNotesWindow = S.ui.createAddNotesWindow(params);
S.app.mainTabGroup.activeTab.open(addNotesWindow);

— asked 1 year ago by Manuel Pedrera
3 Comments
  • Having the same issue, anyone had a solution?

    — commented 1 year ago by Adam Cipoletti

  • Yep. Same problem here. iOS.

    — commented 1 year ago by raul silva

  • Tested with latest SDK 2.1.2. Still no bugfix :-(

    — commented 9 months ago by Danny Pham

2 Answers

Hello,

is this happening on iOS or Android? Can you please share a complete testcase of this, so we can better help you?

Best,

Mauro

— answered 1 year ago by Mauro Parra
answer permalink
2 Comments
  • Hello Mauro,

    I have asked this before but have not been able to find an answer, alternative, nor solution. When an app has more than 5 tabs, and you navigate a tab under the "More..." tab, further than 1 level, when you return to the More… tab the tab icon disappears.

    I have a bare bones sample project at clearly illustrates the problem:

    http://dl.dropbox.com/u/11235/Tab%20Bug%20Demo.zip

    Here is the app.'s code:

    var tabGroup = Titanium.UI.createTabGroup();
    var win1 = Titanium.UI.createWindow({title : 'Tab 1',backgroundColor : "white"});
    var tab1 = Titanium.UI.createTab({icon : 'KS_nav_views.png',title : 'I am tab 1',window : win1});
    var tab2 = Titanium.UI.createTab({icon : 'KS_nav_ui.png',title : 'I am tab 2'});
    var tab3 = Titanium.UI.createTab({icon : 'KS_nav_ui.png',title : 'I am tab 3'});
    var tab4 = Titanium.UI.createTab({icon : 'KS_nav_ui.png',title : 'I am tab 4'});
    var win5 = Titanium.UI.createWindow({title : 'Click the button',backgroundColor : "white"});
    var win_level2 = Titanium.UI.createWindow({title : 'Go back to More… now',backgroundColor : "white"});
    var button = Ti.UI.createButton({title : "click me",width : "100%",height : 30})
    var label = Titanium.UI.createLabel({text : 'Click the More… tab',height : 'auto',width : 'auto',font : {fontSize : 18},textAlign : 'center'});
    var message = Titanium.UI.createLabel({text : 'When you go back to more my tab icon will be gone :-(',height : 'auto',width : 'auto',font : {fontSize : 18},textAlign : 'center'});
    win_level2.add(message);
    win5.add(button);
    win1.add(label);
    button.addEventListener("click", function(e) {tabGroup.activeTab.open(win_level2);})
    var tab5 = Titanium.UI.createTab({icon : 'KS_nav_ui.png',title : 'Click me (I am tab 5)',window : win5});
    var tab6 = Titanium.UI.createTab({icon : 'KS_nav_ui.png',title : 'I am tab 6'});
    tabGroup.addTab(tab1);
    tabGroup.addTab(tab2);
    tabGroup.addTab(tab3);
    tabGroup.addTab(tab4);
    tabGroup.addTab(tab5);
    tabGroup.addTab(tab6);
    tabGroup.open();

    — commented 12 months ago by raul silva

  • Oh, and it happens on iOS, have not tried it on Android.

    — commented 12 months ago by raul silva

A bit late but ... this seems to happen only on iOS simulator, device has no problem.

Your Answer

Think you can help? Login to answer this question!