Exemple #1
0
 /// <summary>
 ///     Restores the view from test again target.
 /// </summary>
 void RestoreViewFromTestAgainTarget()
 {
     InvokeOnMainThread(delegate
     {
         _targetWord.ShrinkWord();
         UIView.Animate(0.5, 0, UIViewAnimationOptions.TransitionCurlUp,
                        () =>
         {
             _nativeWord.Frame = new CGRect(0, 0, View.Frame.Width, 30);
             _targetWord.Frame = new CGRect(0, 160, View.Frame.Width, 30);
         }, () =>
         {
             btnSkipTimer.SetTitle("5", UIControlState.Normal);
             btnSkipTimer.BackgroundColor = "1ECE6D".ToUIColor();
         });
     });
 }
Exemple #2
0
        void RestoreViewFromTestAgainstNative()
        {
            InvokeOnMainThread(delegate
            {
                _nativeWord.ShrinkWord();
                CGAffineTransform transform = CGAffineTransform.MakeIdentity();
                transform.Scale(1f, 1f);

                UIView.Animate(0.5, 0, UIViewAnimationOptions.TransitionCurlUp,
                               () =>
                {
                    _nativeWord.Frame     = new CGRect(0, 0, 320, 30);
                    _targetWord.Transform = transform;
                }, () =>
                {
                    btnSkipTimer.SetTitle("", UIControlState.Normal);
                    btnSkipTimer.BackgroundColor = "1ECE6D".ToUIColor();
                });
            });
        }