It is very simple to create Progress Indicator. the blow code used create ProgressIndicator, show and hide ProgressIndicator
ProgressIndicator does not allow to another action before close the ProgressIndicator.
var ind=Ti.UI.Android.createProgressIndicator({
width:150,
height:50,
min:0,
max:1,
value:0,
style:Titanium.UI.iPhone.ProgressBarStyle.PLAIN,
top:10,
message:'Please Wait...',
font:{fontSize:12, fontWeight:'bold'},
color:'#888'
});
emailwindow.add(ind);
first create above code and then add to window
ind.show();// show the ProgressIndicator
ind.hide();// hide the ProgressIndicator
ProgressIndicator does not allow to another action before close the ProgressIndicator.
var ind=Ti.UI.Android.createProgressIndicator({
width:150,
height:50,
min:0,
max:1,
value:0,
style:Titanium.UI.iPhone.ProgressBarStyle.PLAIN,
top:10,
message:'Please Wait...',
font:{fontSize:12, fontWeight:'bold'},
color:'#888'
});
emailwindow.add(ind);
first create above code and then add to window
ind.show();// show the ProgressIndicator
ind.hide();// hide the ProgressIndicator