Ejemplo n.º 1
0
        public static void ShowProgress()
        {
            CrossCurrentActivity.Current.Activity.RunOnUiThread(() =>
            {
                var builder    = new Android.Support.V7.App.AlertDialog.Builder(CrossCurrentActivity.Current.Activity);
                var dialogView = CrossCurrentActivity.Current.Activity.LayoutInflater.Inflate(Resource.Layout.progressDialog, null);
                builder.SetView(dialogView);
                progressDialog = builder.Show();
                progressDialog.SetCancelable(false);
                progressDialog.Window.SetLayout(Utils.ConvertDpToPixels(200), LayoutParams.WrapContent);

                var progressText  = dialogView.FindViewById <TextView>(Resource.Id.progressText);
                progressText.Text = "cargando";
            });
        }