Forum Xamarin.Android

ObjectAnimator not updating property

I have the following code:

_animator = ObjectAnimator.OfFloat(this, "Radius", DpToPx(_min), DpToPx(_max));
_animator.SetDuration(1000);
_animator.RepeatMode = ValueAnimatorRepeatMode.Restart;
_animator.RepeatCount = ValueAnimator.Infinite;
_animator.Start();

Which should animate my Radius property which is defined as follows:

public float Radius
{
   get
   {
       return _radius;
   }
   set
   {
      Log.Info(TAG, "Set Radius");
      _radius = value;
      Invalidate();
      RequestLayout();
   }
}

However my Radius property set is never called. This code was working as java code and I have just ported it to c#.

What am I doing wrong?

Tagged:

Best Answer

Answers

Sign In or Register to comment.