Code example for AccelerateDecelerateInterpolator

0
			} catch (Exception e) {
				System.out.println("BounceInterpolator not available in this version of Android.  If you wish to use this you must run on version 1.6");
			} 
		} 
		else if(accelType.equals("easeInEaseOut")){
			accel = new AccelerateDecelerateInterpolator();
		} 
		else{ 
			accel = new LinearInterpolator();
		} 
		anim.setInterpolator(accel);
		if((Long)animationSettings.get("duration") != null){
			anim.setDuration((Long)animationSettings.get("duration"));
		} 
		theView.startAnimation(anim);
		return null; 
	} 
 
}