As said in the developers guide:
The object property that you are animating must have a setter function (in camel case) in the form of set(). Because the ObjectAnimator automatically updates the property during animation, it must be able to access the property with this setter method.
The getter (if needed) and setter methods of the property that you are animating must operate on the same type as the starting and ending values that you specify to ObjectAnimator.
For example, you must have targetObject.setPropName(float)
and targetObject.getPropName(float)
if you construct the following ObjectAnimator
:
ObjectAnimator.ofFloat(targetObject, "propName", 1f)
So you need to change your method to:
setCurnum(float f)