Created
April 4, 2012 14:18
-
-
Save patrickseda/2301477 to your computer and use it in GitHub Desktop.
Sample of TableViewRow selection color.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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