Code example for CycleInterpolator

0
	} 
	 
	private Animation shakeAnimation() {
		Animation anim = new TranslateAnimation(0.0f, 10.0f, 0.0f, 0.0f);
		anim.setDuration(300);
		anim.setInterpolator(new CycleInterpolator(5));
		return anim;
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE