Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 6th, 2012  |  syntax: None  |  size: 0.52 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var win = Ti.UI.createWindow({
  2.         backgroundColor: 'blue'
  3. });
  4.  
  5. var actInd = Titanium.UI.createActivityIndicator({
  6.         bottom:100,
  7.         height:50,
  8.         width:10,
  9.         style:Titanium.UI.iPhone.ActivityIndicatorStyle.PLAIN,
  10.         font: {fontFamily:'Helvetica Neue', fontSize:15,fontWeight:'bold'},
  11.         color: 'white',
  12.         message: 'Loading...',
  13.         width: 210
  14. });
  15.  
  16. var loadingWin = Ti.UI.createWindow({
  17.                 backgroundImage: 'Default.png',
  18.                 fullscreen: true
  19. });
  20. loadingWin.open();
  21. loadingWin.add(actInd);
  22. actInd.show();
  23.  
  24. setTimeout(function(){
  25.         win.open();
  26. },4000);