Skip to content

Instantly share code, notes, and snippets.

@patrickseda
Created April 4, 2012 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickseda/2301477 to your computer and use it in GitHub Desktop.
Save patrickseda/2301477 to your computer and use it in GitHub Desktop.
Sample of TableViewRow selection color.
/**
* Sample app.js to demonstrate TableViewRow selection color.
*/
var win = Ti.UI.createWindow();
var data = [];
for (var i = 0; i < 10; i++) {
var row = Ti.UI.createTableViewRow({
title : 'Row ' + i,
backgroundColor : '#68a',
backgroundSelectedColor : '#f68', // Android & MobileWeb
selectedBackgroundColor : '#f68' // iOS.
});
data.push(row)
}
var table = Ti.UI.createTableView({
data : data
});
win.add(table);
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment