Tableview background: transparent issue with NavigationGroup?

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

Hi dudes,

is there currently a problem with NavigationGroup and the transparent Parameter of tableView?

Sometimes after switching between the views, my TableView "forgot" the "transparent" setting.

Is this a known issue?

// create addItemTable
var addItemTable = Titanium.UI.createTableView({
    top: 5,
    data:addItemArr,
    style:Titanium.UI.iPhone.TableViewStyle.GROUPED,
    backgroundColor:'transparent',
    rowBackgroundColor:'white',
    scrollable: false
});

5 Answers

Same problem, but: it locks like there are a second, empty table behind my transparent table ... and only on iOS ... any ideas?

I have the same problem, sometimes the tableview background switch to white... Bug ?

After trying several things, we found a solution that worked. Make sure to create an event listener on the back button of your NavGroup window which removes the table, so that on each load the table is readded. Something like:

var tbl= Titanium.UI.createTableView({
    height: 330,
    width: 270,
    backgroundColor: 'transparent',
});
 
....
 
win.addEventListener('close', function(e){
    win.remove(tbl);    
});
Hope this helps!

Your Answer

Think you can help? Login to answer this question!