Code example for AnimationSet

Methods: setAnimationListenersetInterpolatoraddAnimationsetDuration

0
	        	pen.clearAnimation();
	        	imageViewCamera.clearAnimation();
	        	animeSet = new AnimationSet(true);
	    	}else{ 
	    		settingAnimation(); 
	        	pen.startAnimation(animeSet);
	        	imageViewCamera.startAnimation(animeSet);
	    	} 
	    } 
    } 
 
 
    /** 
     * �A�j���[�V�����֘A 
     */ 
    private void settingAnimation(){ 
		Log.i(TAG,"settingAnimation");
		animeSet = new AnimationSet(true);
 
//	    AlphaAnimation alpha = new AlphaAnimation(0.9f, 0.2f);			//�t�F�[�h 
	    RotateAnimation rotate = new RotateAnimation(0, 180, Animation.RELATIVE_TO_SELF, 0.5F, Animation.RELATIVE_TO_SELF, 0.5F);	//���]
	    ScaleAnimation scale = new ScaleAnimation(1, 2, 1, 2, 400, 0);	//�Y�[��
//	    TranslateAnimation translate = new TranslateAnimation(50, 0, 200, 0);	//�ړ� 
//	    animeSet.addAnimation(alpha);  
	    animeSet.addAnimation(rotate);
	    animeSet.addAnimation(scale);
//	    animeSet.addAnimation(translate); 
	    animeSet.setInterpolator(new CycleInterpolator(5F));
	    animeSet.setAnimationListener(this);
    	animeSet.setDuration(24000);
    } 
     
	@Override 
	public void onAnimationStart(Animation animation) {
		Log.i(TAG,"onAnimationStart");
Connect your IDE to all the code out there  Get Codota for Java