/** * This method is needed to calculate the auto scroll * when the user slide the view to the max limit, this * starts a animation to finish the view. */ @Override public void computeScroll() { if (!isInEditMode() && dragHelper.continueSettling(true)) { ViewCompat.postInvalidateOnAnimation(this); } }