Code example for ScaleAnimation

Methods: setAnimationListenersetDurationsetFillAftersetInterpolator

0
        		clickedButton.startAnimation(scaleFaceDownAnimation(500));		 
        } 
	}; 
	 
	public Animation scaleFaceDownAnimation(int duration){
		Animation scaleFace = new ScaleAnimation(1.2f, 1.0f, 1.2f, 1.0f, Animation.RELATIVE_TO_SELF,0.5f,Animation.RELATIVE_TO_SELF,0.5f);
		scaleFace.setDuration(duration);
		scaleFace.setFillAfter(true);
		scaleFace.setInterpolator(new AccelerateInterpolator());
		Animation.AnimationListener	scaleFaceAnimationListener = new Animation.AnimationListener() {			
			@Override 
			public void onAnimationStart(Animation arg0) {}			
			@Override 
			public void onAnimationRepeat(Animation arg0) {}			
			@Override 
			public void onAnimationEnd(Animation arg0) {
				horizontalTextView.setText("");
				isFaceDown = true;				
			} 
		};  
		scaleFace.setAnimationListener(scaleFaceAnimationListener);
		return scaleFace;
	} 
     
    public void stopAutoScrolling(){ 
		if (scrollTimer != null) {
Connect your IDE to all the code out there  Get Codota for Java