【发布时间】:2013-11-02 20:45:20
【问题描述】:
当用户点击按钮时,我正在使用 NineOldAndroids 来旋转按钮。以下是代码:
Button btntest = (Button) findViewById(R.id.testbutton);
btntest.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
ObjectAnimator.ofFloat(v, "rotation", 0f, 360f).start();
}
});
当我点击按钮时,它会将这个日志扔到 logcat 中:
10-24 05:25:42.394: E/PropertyValuesHolder(2387): Couldn't find setter property rotation for Button with value type float
我进行了多次搜索,但在这里没有找到任何解决方案。 请帮帮我。
谢谢。
【问题讨论】:
-
查看我的更新答案
标签: android android-animation nineoldandroids