Code example for AccelerateDecelerateInterpolator

0
		mFlyInXAnim = ObjectAnimator.ofFloat(view, "x", 0);
		mFlyInYAnim = ObjectAnimator.ofFloat(view, "y", 0);
		ObjectAnimator scaleUpX = ObjectAnimator.ofFloat(view, "scaleX", 0.25f, 1f);
		ObjectAnimator scaleUpY = ObjectAnimator.ofFloat(view, "scaleY", 0.25f, 1f);
 
		mAnimatorSet.setInterpolator(new AccelerateDecelerateInterpolator());
		mAnimatorSet.setDuration(duration);
		mAnimatorSet.play(mFlyInXAnim).with(mFlyInYAnim).with(scaleUpX).with(scaleUpY);//.with(mRotateToBotAnim);
	} 
	 
	public void setValues(float fromX, float toX, float fromY, float toY) {
		mFlyInXAnim.setFloatValues(fromX, toX);
		mFlyInYAnim.setFloatValues(fromY, toY);
	} 
}