public void CreateProgressDialog(string message, Boolean cacelable, ProgressDialogStyle style) { mProgressDialog = new Android.App.ProgressDialog(mContext); mProgressDialog.Indeterminate = true; mProgressDialog.SetProgressStyle(style); mProgressDialog.SetMessage(message); mProgressDialog.SetCancelable(false); mProgressDialog.Show(); }
public static ProgressDialog ShowProgressDialog(Activity activity, int messageResId, /*int titleResId,*/ bool allowCancel, ProgressDialogStyle style=ProgressDialogStyle.Spinner) { ProgressDialog dialog = new ProgressDialog(activity); dialog.SetProgressStyle(style); //dialog.SetTitle(titleResId); dialog.SetMessage(activity.Resources.GetString(messageResId)); dialog.SetCancelable(allowCancel); dialog.SetCanceledOnTouchOutside(allowCancel); dialog.Show(); return dialog; }
ProgressDialog SetUpProgressDialog (string title, string message, bool indeterminate, ProgressDialogStyle style) { var dialog = new ProgressDialog (this) { Indeterminate = indeterminate, Max = 100, Progress = 0 }; dialog.SetTitle (title); dialog.SetMessage (message); dialog.SetProgressStyle (style); return dialog; }
ProgressDialog SetUpProgressDialog(string title, string message, bool indeterminate, ProgressDialogStyle style) { var dialog = new ProgressDialog(this) { Indeterminate = indeterminate, Max = 100, Progress = 0 }; dialog.SetTitle(title); dialog.SetMessage(message); dialog.SetProgressStyle(style); return(dialog); }