SHARE
TWEET

Untitled

a guest Sep 18th, 2019 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top