Code example for AnimationSet

Methods: addAnimation, startAnimation

0
	private class RotateShow implements OnClickListener{
 
		@Override 
		public void onClick(View arg0) {
			// TODO Auto-generated method stub 
			AnimationSet set = new AnimationSet(true);
			RotateAnimation rotate = new RotateAnimation(0,360,Animation.RELATIVE_TO_PARENT,0.5f,Animation.RELATIVE_TO_PARENT,0.3f);
			rotate.setDuration(3000);
			set.addAnimation(rotate);
			RotateDemoActivity.this.rotataImage.startAnimation(set);
		} 
	} 
	 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu){
		menu.add(Menu.NONE,Menu.FIRST+1,1,"Return to Animation");
		return super.onCreateOptionsMenu(menu);
	} 
	 
	@Override 
	public boolean onOptionsItemSelected(MenuItem item){