Android: Rotate image in ImageView by 90degrees but without delay

后端 未结 4 1382
遥遥无期
遥遥无期 2020-12-31 18:59

I am developing a game where a user needs to tap on the image in ImageView to rotate it. On each tap image rotates by 90 degrees in clockwise direction. But image is taking

4条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-31 19:35

    You don't need to rotate the object, rotating the view should be enough. If you are aiming API>=11 you can always do this.

    mImageView.setRotation(angle);
    

    Cheers.

提交回复
热议问题