void OnUpdate(object sender, ValueAnimator.AnimatorUpdateEventArgs e)
 {
     _progress = (float)e.Animation.AnimatedValue;
     if (!this.IsDisposed())
     {
         InvalidateSelf();
     }
 }
Beispiel #2
0
 protected void textValueAnimator_Float_Update(object sender, ValueAnimator.AnimatorUpdateEventArgs e)
 {
     base.ExecuteMethod("textValueAnimator_Float_Update", delegate()
     {
         TextView view = this.TargetView as TextView;
         if (view != null)
         {
             object animatedValue = e.Animation.AnimatedValue as object;
             float value;
             if (float.TryParse(animatedValue.ToString(), out value))
             {
                 view.Text = value.ToString();
                 view.Invalidate();
             }
         }
     });
 }
Beispiel #3
0
 protected void colorValueAnimator_Update(object sender, ValueAnimator.AnimatorUpdateEventArgs e)
 {
     base.ExecuteMethod("colorValueAnimator_Update", delegate()
     {
         View view = this.TargetView;
         if (view != null)
         {
             object animatedValue = e.Animation.AnimatedValue as object;
             Decimal decimalValue;
             if (Decimal.TryParse(animatedValue.ToString(), out decimalValue))
             {
                 BigInteger value = new BigInteger(decimalValue);
                 view.SetBackgroundColor(value.ToString("X").ConvertHexToColor());
                 view.Invalidate();
             }
         }
     });
 }
Beispiel #4
0
        void OnUpdate(object sender, ValueAnimator.AnimatorUpdateEventArgs e)
        {
            _progress = (float)e.Animation.AnimatedValue;

            InvalidateSelf();
        }
Beispiel #5
0
 void HandleHoverAnimatorUpdate(object sender, ValueAnimator.AnimatorUpdateEventArgs e)
 {
     Invalidate();
 }
 void OnValOnUpdate(object sender, ValueAnimator.AnimatorUpdateEventArgs e)
 {
     SendSignals();
 }
 private void OnWaveAnimatorUpdate(object sender, ValueAnimator.AnimatorUpdateEventArgs e) => this.Invalidate();
 private void GridAnimatorOnUpdate(object sender, ValueAnimator.AnimatorUpdateEventArgs animatorUpdateEventArgs)
 {
     _alpha = (float)animatorUpdateEventArgs.Animation.AnimatedValue;
     InvalidateSelf();
 }
Beispiel #9
0
 private void OnScrollAnimationUpdate(object sender, ValueAnimator.AnimatorUpdateEventArgs e)
 {
     translateY = (float)e.Animation.AnimatedValue;
     UpdateChildrenTranslationY();
 }