Code example for ObjectAnimator

Methods: setFloatValues

0
		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);
	} 
}