主要运用ImageView 下的rotation属性
MainAcitivity 中代码如下:
ImageView nowimg =(ImageView) v2.findViewById(R.id.nowimg);
new CountDownTimer(100,1000){
public void onTick(long millisUntilFinished){}
int i=1;
@Override
public void onFinish() {
nowimg.setPivotX(nowimg.getWidth()/2);
nowimg.setPivotY(nowimg.getHeight()/2);//图片中心为支点
nowimg.setRotation(i);
i=i+1;
if(i==361){i=1;}
start();
}
}.start();