Esempio n. 1
0
        private void ShowInternal(string status, SVProgressHUDMask mask)
        {
            this.FadeOutTimer = null;

            this.ImageView.Hidden = true;
            this.mask             = mask;

            this.SetStatus(status);
            this.SpinnerView.StartAnimating();

            this.OverlayWindow.UserInteractionEnabled = (this.mask != SVProgressHUDMask.None);
            this.OverlayWindow.MakeKeyAndVisible();

            this.PositionHUD(null);

            if (this.Alpha != 1f)
            {
                RegisterNotifications();
                var transform = this.HudView.Transform;
                transform.Scale(1.3f, 1.3f);
                this.HudView.Transform = transform;

                UIView.Animate(0.15f, 0, UIViewAnimationOptions.AllowUserInteraction | UIViewAnimationOptions.CurveEaseOut | UIViewAnimationOptions.BeginFromCurrentState, () => {
                    var normal = this.HudView.Transform;
                    normal.Scale(1 / 1.3f, 1 / 1.3f);
                    this.HudView.Transform = normal;
                    this.Alpha             = 1;
                },
                               () => {});
            }


            this.SetNeedsDisplay();
        }
Esempio n. 2
0
        private void ShowInternal(string status, SVProgressHUDMask mask)
        {
            this.FadeOutTimer = null;

            this.ImageView.Hidden = true;
            this.mask = mask;

            this.SetStatus(status);
            this.SpinnerView.StartAnimating();

            this.OverlayWindow.UserInteractionEnabled = (this.mask!=SVProgressHUDMask.None);
            this.OverlayWindow.MakeKeyAndVisible();

            this.PositionHUD(null);

            if (this.Alpha != 1f) {
                RegisterNotifications();
                var transform = this.HudView.Transform;
                transform.Scale(1.3f,1.3f);
                this.HudView.Transform = transform;

                UIView.Animate(0.15f, 0, UIViewAnimationOptions.AllowUserInteraction | UIViewAnimationOptions.CurveEaseOut | UIViewAnimationOptions.BeginFromCurrentState, () => {

                    var normal = this.HudView.Transform;
                    normal.Scale(1/1.3f,1/1.3f);
                    this.HudView.Transform = normal;
                    this.Alpha = 1;
            },
            () => {});
            }

            this.SetNeedsDisplay();
        }
Esempio n. 3
0
 public static void Show(SVProgressHUDMask mask)
 {
     Show(null, mask);
 }
Esempio n. 4
0
 public static void Show(string status, SVProgressHUDMask mask)
 {
     SharedView.ShowInternal(status, mask);
 }
Esempio n. 5
0
 public static void Show(SVProgressHUDMask mask)
 {
     Show(null, mask);
 }
Esempio n. 6
0
 public static void Show(string status, SVProgressHUDMask mask)
 {
     SharedView.ShowInternal(status, mask);
 }