I have such a strange problem. I have an image that I rotate around a fixed point using rotateAnimation.
I handled the click event when the user clicks on the images as shown below:
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.imageView1:
finish();
Intent i = new Intent(this, Next.class);
startActivity(i);
break;
}
}
The problem I am facing is that after the image is rotated, the click event does not fire when I click on the image, but fires when I click on the position that the image was at first.
I know that I have to miss something basic, but I canβt understand.
source
share