示例#1
0
 public void Clear()
 {
     if (Animation != null)
     {
         Animation.SetAnimationListener(null);
         Animation.Cancel();
         Animation = null;
     }
 }
示例#2
0
        public void StartProgress()
        {
            MaxProgressView.Visibility = ViewStates.Gone;

            Animation = new PassableScaleAnimation(0, 1, 1, 1, Dimension.Absolute, 0, Dimension.RelativeToSelf, 0)
            {
                Duration = Duration, Interpolator = new LinearInterpolator()
            };
            Animation.SetAnimationListener(new MyAnimationListener(this));
            Animation.FillAfter = true;
            FrontProgressView.StartAnimation(Animation);
        }