Code example for AccelerateInterpolator

0
		Rect frame = computeChildFrame(!expanded, mLeftHolderWidth, index, mChildGap, mChildSize);
 
		final int toXDelta = frame.left - child.getLeft();
		final int toYDelta = frame.top - child.getTop();
 
		Interpolator interpolator = mExpanded ? new AccelerateInterpolator() : new OvershootInterpolator(1.5f);
		final long startOffset = computeStartOffset(childCount, mExpanded, index, 0.1f, duration, interpolator);
 
		Animation animation = mExpanded ? createShrinkAnimation(0, toXDelta, 0, toYDelta, startOffset, duration,
				interpolator) : createExpandAnimation(0, toXDelta, 0, toYDelta, startOffset, duration, interpolator);
 
		final boolean isLast = getTransformedIndex(expanded, childCount, index) == childCount - 1;
		animation.setAnimationListener(new AnimationListener() {
 
			@Override 
			public void onAnimationStart(Animation animation) {
 
			} 
 
			@Override 
			public void onAnimationRepeat(Animation animation) {