I am using NineOldAndroids to rotate a button when users click on it. here are the codes:
Button btntest = (Button) findViewById(R.id.testbutton);
btntest.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
ObjectAnimator.ofFloat(v, "rotation", 0f, 360f).start();
}
});
When I clicked on the button, it thrown this log into logcat:
10-24 05:25:42.394: E/PropertyValuesHolder(2387): Couldn't find setter property rotation for Button with value type float
I have took many searching but I didn't find any solution here. Please help me.
Thanks.