Hi all, I'm creating a table view and want to disable every second row. I am working on android at the moment and have tried answers provided on the q and A but nothing has worked yet. Condensed code below:
for (i=0; i< 5; i++){ var row=Titanium.UI.createTableViewRow({ height: Ti.UI.SIZE, name:i, backgroundColor:'white' }); var row2=Titanium.UI.createTableViewRow({ height: '15dp', name:i, backgroundColor:'#204581', touchEnabled:false, visible:false, focusable:false }); if (i % 2 == 0){ } else{ ResponsesRow_data.push(row2); } ResponsesRow_data.push(row); } Responses_table.setData(ResponsesRow_data); self.add(Responses_table);