Constructorparamfactor Degree to which the animation should be eased. Seting factor to 1.0f produces an upside-down y=x^2 parabola. Increasing factor above 1.0f makes exaggerates the ease-out effect (i.e., it starts even faster and ends evens slower) mFactor = factor;
mFactor = factor;
TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.DecelerateInterpolator); mFactor = a.getFloat(com.android.internal.R.styleable.DecelerateInterpolator_factor, 1.0f); a.recycle();
if (mFactor == 1.0f) { return (float)(1.0f - (1.0f - input) * (1.0f - input)); } else { return (float)(1.0f - Math.pow((1.0f - input), 2 * mFactor)); }