/**
  * The refresh indicator starting and resting position is always positioned near the top of the
  * refreshing content. This position is a consistent location, but can be adjusted in either
  * direction based on whether or not there is a toolbar or actionbar present.
  *
  * @param scale Set to true if there is no view at a higher z-order than where the progress
  *     spinner is set to appear.
  * @param start The offset in pixels from the top of this view at which the progress spinner
  *     should appear.
  * @param end The offset in pixels from the top of this view at which the progress spinner should
  *     come to rest after a successful swipe gesture.
  */
 public void setProgressViewOffset(boolean scale, int start, int end) {
   mScale = scale;
   mCircleView.setVisibility(View.GONE);
   mOriginalOffsetTop = mCurrentTargetOffsetTop = start;
   mSpinnerFinalOffset = end;
   mUsingCustomStart = true;
   mCircleView.invalidate();
 }
 /**
  * The refresh indicator resting position is always positioned near the top of the refreshing
  * content. This position is a consistent location, but can be adjusted in either direction based
  * on whether or not there is a toolbar or actionbar present.
  *
  * @param scale Set to true if there is no view at a higher z-order than where the progress
  *     spinner is set to appear.
  * @param end The offset in pixels from the top of this view at which the progress spinner should
  *     come to rest after a successful swipe gesture.
  */
 public void setProgressViewEndTarget(boolean scale, int end) {
   mSpinnerFinalOffset = end;
   mScale = scale;
   mCircleView.invalidate();
 }