PropertyValues​​Holder:找不到二传手/ getter方法​​属性阿尔法值类型为浮动阿尔法、找不到、属性、类型

2023-09-07 12:57:11 作者:他是光芒i

我想nineoldandroids是API较低则蜂窝...

i thought nineoldandroids is a framework for API lower then HONEYCOMB...

让我怎么错了?我的HTC的Andr​​oid 2.2.1抛出这个错误(找不到二传手/ getter方法​​属性阿尔法值类型为浮动):在所有这些行:

so what do i wrong?? my HTC Android 2.2.1 throws this error (Couldn't find setter/getter for property alpha with value type float): on all these lines:

ObjectAnimator.ofFloat(mHintViewRing, "alpha", 0);
ObjectAnimator.ofFloat(mHintViewRing, "alpha", 0f, 1f);

编辑: 我贴错了行遗憾:

i posted the wrong line sorry:

PropertyValuesHolder.ofFloat("alpha", 1f, 0.1f);

是坏的。

推荐答案

一些尝试后,我更换了所有PropertyValues​​Holder与ObjectAnimator(含浮动瓦尔)

After some tries, i replaced all PropertyValuesHolder with ObjectAnimator (with float vars)