Skip to content

Instantly share code, notes, and snippets.

@LearningTitanium
Created September 11, 2011 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LearningTitanium/1210253 to your computer and use it in GitHub Desktop.
Save LearningTitanium/1210253 to your computer and use it in GitHub Desktop.
createActivityIndicator on titanium
var win = Titanium.UI.createWindow({
title:'Learning Titanium - Activity Inticator',
backgroundColor:'#ccc'
});
var actInd = Ti.UI.createActivityIndicator({
width:50,
height:50,
message: 'Hello there!',
color: 'FF0000'
})
actInd.show();
/*
var actInd = Titanium.UI.createActivityIndicator();
actInd.show();
actInd.setMessage("loading..");
actInd.setColor('ff0000');
//actInd.setStyle(Titanium.UI.iPhone.ActivityIndicatorStyle.BIG)
//win.add(actInd);
win.setRightNavButton(actInd);
actInd.show();
*/
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment