Code example for ScaleAnimation

Methods: setAnimationListener, setDuration, setInterpolator

0
	public void startWinAnim(){ 
		if(isStop)return;
    	//µÃµ½µ±Ç°×ùλµÄÏÂ×¢³ïÂëÊÓͼ 
	    this.setVisibility(View.VISIBLE);
	   
	     am1 =   new ScaleAnimation(0.0f, 1.0f, 0.0f,1.0f,Animation.RELATIVE_TO_SELF,res[0],Animation.RELATIVE_TO_SELF,res[1]);
		//ÉèÖÃʱ¼ä³ÖÐøʱ¼ä 
		 am1.setDuration(200);
		 am1.setInterpolator(new AccelerateInterpolator());//¼ÓËÙÆ÷
		 am1.setAnimationListener(new AnimationListener(){
 
				@Override 
				public void onAnimationEnd(Animation animation) {
					myThread=new MyThread();
				} 
				public void onAnimationRepeat(Animation animation) {
 
				} 
				public void onAnimationStart(Animation animation) {
					//²¥·Å´Óµ×³ØÄõ½³ïÂëÉùÒô 
					//MediaManager.getInstance().playSound(MediaManager.winchips);