In 2.2 SDK I'm rotating a TextView and I've attached an onClickListener to display a dummy text in console, but the onClick method isn't fired. Is something wrong with my code, or there is a workaround?
public void setTextViewRotation(int angle, TextView tv) {
RotateAnimation rayAnim = new RotateAnimation(0, angle - 90, -100, 22);
rayAnim.setFillAfter(true);
rayAnim.setDuration(1);
rayAnim.setAnimationListener(this);
tv.setAnimation(rayAnim);
}
... textView declaration...setTextViewRotation(angle, textView);
... textView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Log.i("Main","select ray");
}
});