Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. var win = Ti.UI.createWindow({backgroundColor: 'gray', fullscreen: true});
  2. var listView = Ti.UI.createListView();
  3. listView.separatorStyle =Titanium.UI.TABLE_VIEW_SEPARATOR_STYLE_SINGLE_LINE;
  4. listView.separatorColor = 'blue';
  5. var section = Ti.UI.createListSection();
  6. var sectionData = [];
  7. var i = 10;
  8. for (var k = 0; k < 10; k++) {
  9. sectionData.push({
  10. properties : {
  11. title: 'Row ' + (k + 1)
  12. }
  13. });
  14. }
  15. section.setItems(sectionData);
  16. listView.sections = [section];
  17. win.add(listView);
  18. win.open();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement