Created
March 6, 2012 14:20
-
-
Save iskugor/1986524 to your computer and use it in GitHub Desktop.
Titanium SDK ActivityIndicator issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Ti.UI.createWindow({ | |
navBarHidden: true, | |
backgroundColor: '#000' | |
}); | |
var button = Ti.UI.createButton({ | |
title: 'Click me!' | |
}); | |
var actInd = Ti.UI.createActivityIndicator({ | |
height: 20, | |
width: 20 | |
}); | |
win.add(button); | |
button.addEventListener('click', function() { | |
var win1 = Ti.UI.createWindow({ | |
backgroundColor: '#fc0', | |
layout: 'vertical', | |
navBarHidden: true, | |
modal: true | |
}); | |
var buttonClose = Ti.UI.createButton({ | |
title: 'Click to close!' | |
}); | |
win1.add(buttonClose); | |
buttonClose.addEventListener('click', function() { | |
actInd.show(); | |
win1.close(); | |
setTimeout(function() { actInd.hide(); }, 200); | |
}); | |
win1.open(); | |
}); | |
win.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment