您可以使用
旋转ImageViewImageView.setRotation(float rotation);
但你可以扩展吗?
编辑: 像这样......
ImageView icon = (ImageView) findViewById(R.id.icon);
for (int i = 0; i < 90; i++){
Log.i("Rotate", "Rotating icon by " + String.valueOf(i) + " degrees.");
Log.i("Scale", "Scaling icon by " + String.valueOf(i/90) + " degrees.");
icon.setRotation(i); // rotate by i degrees (0 to 90)
icon.setScale(i/90); // scale by i/90 (0 to 100%)
try{Thread.sleep(5);}// sleep for a little bit
catch(InterruptedException e){}
}
答案 0 :(得分:2)