Rotate image from center point in imageview
问题 I want to rotate an image in android. I found this useful post and it works great but it seems rotation in android starts from bottom left corner. I need to rotate my image from center point. Is it possible? Code for the same is helpful. Thanks. 回答1: The problem with @goodm's solution is that imageView might not have been layed out yet which causes imageView.getDrawable().getBounds().width() and .height() to return 0. That's why you're still rotating around 0,0. One way around this is to