예제 #1
0
 public static void showCenterToast(Android.Content.Context ctx, string text, Android.Widget.ToastLength duration)
 {
     Android.App.Activity act = (Android.App.Activity)ctx;
     act.RunOnUiThread(() => {
         Android.Widget.Toast toast = Android.Widget.Toast.MakeText(ctx, text, duration);
         toast.SetGravity(Android.Views.GravityFlags.Center, 0, 0);
         toast.Show();
     });
 }
예제 #2
0
 void setDialogMessage(string message, Android.Widget.ToastLength toastLength)
 {
     _progressDialog.SetMessage(message);
 }