[TIMOB-5640] MobileWeb: activityIndicator does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2011-08-26T05:54:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.2 |
Components | n/a |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Andrew Kulinich |
Created | 2011-08-23T07:58:44.000+0000 |
Updated | 2017-03-03T06:07:31.000+0000 |
Description
activityIndicator does not work.
How to reproduce: Launch KitchenSink_HTML5 -> Activity indicator - > click "Show activity indicator".
var win = Ti.UI.currentWindow;
win.backgroundColor = '#eee';
var actInd = Ti.UI.createActivityIndicator({
message: 'Activity Indicator',
font:{fontStyle:'italic'},
color:'red',
width: 200,
height: 30,
top: 10,
left: 50,
style:Ti.UI.iPhone.ActivityIndicatorStyle.PLAIN
});
var basicButton = Ti.UI.createButton({
title:'Show activity indicator',
top: 100,
left: 10,
width: 300,
height: 40,
font:{fontSize:18}
});
var advancedButton = Ti.UI.createButton({
title: 'Change indicator',
top: 150,
left: 10,
width: 300,
height: 40,
font:{fontSize:18}
});
var closeButton = Ti.UI.createButton({
title:'Close Window',
height:40,
width:300,
left:10,
top:200,
font:{fontSize:18}
});
closeButton.addEventListener('click', function(){
win.close();
});
basicButton.addEventListener('click', function(){
if (!actInd.visible){
actInd.show();
basicButton.title = 'Hide activity indicator';
}
else{
actInd.hide();
basicButton.title = 'Show activity indicator';
}
});
var state=0;
advancedButton.addEventListener('click',function(){
switch (state)
{
case 0:{
actInd.style = Ti.UI.iPhone.ActivityIndicatorStyle.BIG;
actInd.message = 'BIG activity indicator';
state++;
break;
}
case 1:{
actInd.style = Ti.UI.iPhone.ActivityIndicatorStyle.DARK;
actInd.message = 'DARK activity indicator';
state++;
break;
}
case 2:{
actInd.style = Ti.UI.iPhone.ActivityIndicatorStyle.PLAIN;
actInd.message = 'PLAIN activity indicator';
state = 0;
break;
}
}
});
win.add(closeButton);
win.add(actInd);
win.add(basicButton);
win.add(advancedButton);
Closing issue due to time passed and irrelevance of the ticket.