Wednesday, 15 May 2013

android - How can I create a pause for rotating animation -


I need to know how to stop my rotation animation:

  public Zero onClick (see v) {ImageView Animation Target = (ImageView) this.findViewById (R.id.imgWheel); Switch (v.getId ()) {case R.id.playButton: playBtn.setVisibility (button. INVISIBLE); PauseBtn.setVisibility (Button.VISIBLE); Animation animation = animationuulti Load animation (this, R. anime.artite_around_center_point); AnimationTarget.startAnimation (animation); break; Case R.id.pauseButton: pauseBtn.setVisibility (button. INVISIBLE); PlayBtn.setVisibility (Button.VISIBLE); // here is the place where I can put the break button code // break; }}    

use animationTarget.clearAnimation () if try

No comments:

Post a Comment