您可以使用此活動中:
protected Dialog onCreateDialog(int id) {
ProgressDialog progress = new ProgressDialog(this);
progress.setMessage("The information is gathered, one moment please.");
progress.setIndeterminate(true);
progress.setCancelable(false);
progress.setCanceledOnTouchOutside(false);
return progress;
}
這將顯示,一旦你(或)稱此活動的警報:
showDialog(0x0001);
當對話框有淡出調用此:
removeDialog(0x0001);
編輯
現在的目標c:
UIAlertView alert = [UIAlertView initWithTitle:@"a title" message:@"a message" delegate:nil cancelButtonTitle:nil otherButtonTitles:nil]
[alert show];
if(alert != nil) {
UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
indicator.center = CGPointMake(alert.bounds.size.width/2, alert.bounds.size.height-45);
[indicator startAnimating];
[alert addSubview:indicator];
[indicator release];
}
編輯 刪除它與完成這件事:
[alert dismissWithClickedButtonIndex:0 animated:YES];
[alert release];
/EDIT
爲我工作:)它可能是它並不完全位於becou我改變了瀏覽器中的一些東西,現在公司機密等xD :)。 隨意問些關於它的東西。
我添加了objective-c代碼。 – Manuel
如果我的回答是正確的,請標記爲答案:) – Manuel