Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var win = Ti.UI.createWindow({backgroundColor: 'gray', fullscreen: true});
- var listView = Ti.UI.createListView();
- listView.separatorStyle =Titanium.UI.TABLE_VIEW_SEPARATOR_STYLE_SINGLE_LINE;
- listView.separatorColor = 'blue';
- var section = Ti.UI.createListSection();
- var sectionData = [];
- var i = 10;
- for (var k = 0; k < 10; k++) {
- sectionData.push({
- properties : {
- title: 'Row ' + (k + 1)
- }
- });
- }
- section.setItems(sectionData);
- listView.sections = [section];
- win.add(listView);
- win.open();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement