Code example for TranslateAnimation

Methods: startAnimationsetAnimationListenersetDurationsetFillAfter

0
	 */ 
	public static void setTranslateAnimation(final AinmParams params) {
		if (params.getView() != null) {
			if (!translatAnimSwitch) {
				translatAnimSwitch = !translatAnimSwitch;
				final TranslateAnimation anim = new TranslateAnimation(
						params.getFromXType(), params.getFromX(),
						params.getToXType(), params.getToX(),
						params.getFromYType(), params.getFromY(),
						params.getToYType(), params.getToY());
				anim.setDuration(params.getTime());
				anim.setFillAfter(true);
				anim.setDuration(params.getTime());
				params.getView().startAnimation(anim);
				anim.setAnimationListener(new AnimationListener() {
					TranslateAnimInterface transslateInterface = params.getTranlateInterface();
					@Override 
					public void onAnimationStart(Animation animation) {
						transslateInterface.doAnimStart();
					} 
Connect your IDE to all the code out there  Get Codota for Java