Guest User

Untitled

a guest
Jan 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. var win = Titanium.UI.createWindow({
  2. title:'Learning Titanium - Activity Inticator',
  3. backgroundColor:'#ccc'
  4. });
  5.  
  6. var actInd = Ti.UI.createActivityIndicator({
  7. width:50,
  8. height:50,
  9. message: 'Hello there!',
  10. color: 'FF0000'
  11. })
  12.  
  13. actInd.show();
  14.  
  15. /*
  16. var actInd = Titanium.UI.createActivityIndicator();
  17. actInd.show();
  18. actInd.setMessage("loading..");
  19. actInd.setColor('ff0000');
  20. //actInd.setStyle(Titanium.UI.iPhone.ActivityIndicatorStyle.BIG)
  21.  
  22. //win.add(actInd);
  23. win.setRightNavButton(actInd);
  24. actInd.show();
  25. */
  26. win.open();
Add Comment
Please, Sign In to add comment