Code example for VelocityTracker

Methods: clear, recycle

0
		} 
		return true; 
	} 
	private void releaseVelocityTracker() { 
		if(null != mVelocityTracker) {  
            mVelocityTracker.clear();  
            mVelocityTracker.recycle();  
            mVelocityTracker = null;  
        }   
		 
	} 
	private void endRotateByVelocity(){ 
		if(degree > 0){
			rotate3d = new Rotate3D(degree , 90 , 0, mCenterX, mCenterY);
			rotate3d3 = new Rotate3D( - 90 + degree,0,0, mCenterX, mCenterY);
			rotate3d.setDuration(300);
			rotate3d3.setDuration(300);
			if(currentTab == 0){
				layoutmain.startAnimation(rotate3d);
				layoutlast.startAnimation(rotate3d3);	
			}else if(currentTab == 2){