Skip to content

Instantly share code, notes, and snippets.

@nuno
Forked from dawsontoth/app.js
Created April 18, 2014 22:48
Show Gist options
  • Save nuno/11067534 to your computer and use it in GitHub Desktop.
Save nuno/11067534 to your computer and use it in GitHub Desktop.
Loading images in @appcelerator #Titanium
/* The images for this example can be downloaded from http://j.mp/loadingimagesforti */
var win = Ti.UI.createWindow({ backgroundColor: '#f00'});
var loading = Ti.UI.createImageView({
images: [
'images/loading/00.png', 'images/loading/01.png', 'images/loading/02.png',
'images/loading/03.png', 'images/loading/04.png', 'images/loading/05.png',
'images/loading/06.png', 'images/loading/08.png', 'images/loading/09.png',
'images/loading/10.png', 'images/loading/11.png'
],
width: 33, height: 33
});
loading.start();
win.add(loading);
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment