我需要知道如何暂停我的旋转动画:
public void onClick(View v)
{
ImageView animationTarget = (ImageView) this.findViewById(R.id.ImgWheel);
switch (v.getId())
{
case R.id.playButton:
playBtn.setVisibility(Button.INVISIBLE);
pauseBtn.setVisibility(Button.VISIBLE);
Animation animation = AnimationUtils.loadAnimation(this, R.anim.rotate_around_center_point);
animationTarget.startAnimation(animation);
break;
case R.id.pauseButton:
pauseBtn.setVisibility(Button.INVISIBLE);
playBtn.setVisibility(Button.VISIBLE);
//here is where i may put the pause button codes//
break;
}
}