private void StartScaleDownReturnToStartAnimation(int from,
                                                          IAnimationListener listener)
        {
            From = from;
            if (IsAlphaUsedForScale())
            {
                _startingScale = _progress.Alpha;
            }
            else
            {
                _startingScale = ViewCompat.GetScaleX(_circleView);
            }

            _scaleDownToStartAnimation = new CustommScaleDownToStartAnimation(this)
            {
                Duration = ScaleDownDuration
            };

            if (listener != null)
            {
                _circleView.SetAnimationListener(listener);
            }

            _circleView.ClearAnimation();
            _circleView.StartAnimation(_scaleDownToStartAnimation);
        }
Example #2
0
 private void startScaleDownReturnToStartAnimation(int from,
                                                   IAnimationListener listener)
 {
     mFrom = from;
     if (isAlphaUsedForScale())
     {
         mStartingScale = mProgress.Alpha;
     }
     else
     {
         mStartingScale = ViewCompat.GetScaleX(mCircleView);
     }
     mScaleDownToStartAnimation          = new CustommScaleDownToStartAnimation(this);
     mScaleDownToStartAnimation.Duration = (SCALE_DOWN_DURATION);
     if (listener != null)
     {
         mCircleView.setAnimationListener(listener);
     }
     mCircleView.ClearAnimation();
     mCircleView.StartAnimation(mScaleDownToStartAnimation);
 }