Esempio n. 1
0
        public void ShowWaitDialog_Samll(string msg, bool isCanCancel = false, bool isOutSideTouch = false)
        {
            if (dialog_Show == null)
            {
                InitShowDialog();
            }
            if (dialog_Show.IsShowing)
            {
                dialog_Show.FindViewById <TextView>(Resource.Id.tv_hint).Text = msg;
            }
            else
            {
                var v = LayoutInflater.From(this).Inflate(Resource.Layout.Dialog_WaitProgress_Small, null);
                v.FindViewById <TextView>(Resource.Id.tv_hint).Text = msg;
                dialog_Show.SetContentView(v);
            }
            dialog_Show.SetCancelable(isCanCancel);
            dialog_Show.SetCanceledOnTouchOutside(isOutSideTouch);
            var window = dialog_Show.Window;

            if (window != null)
            {
                var attr = window.Attributes;
                if (attr != null)
                {
                    attr.Height       = 160;
                    attr.Width        = 160;
                    attr.Gravity      = GravityFlags.Center;
                    window.Attributes = (attr);
                }
            }
            dialog_Show.Show();
        }
Esempio n. 2
0
 public global::Android.Views.View findViewByID(int id)
 {
     if (_useAppCompat)
     {
         return(_appcompatAlertDialog.FindViewById(id));
     }
     else
     {
         return(_legacyAlertDialog.FindViewById(id));
     }
 }
Esempio n. 3
0
 public AView findViewByID(int id)
 {
     if (_useAppCompat)
     {
         return(_appcompatAlertDialog.FindViewById(id));
     }
     else
     {
         return(_legacyAlertDialog.FindViewById(id));
     }
 }