protected Rect updateFastScrollerBounds(FastScrollRecyclerView rv,int lastTouchY){
  invalidateRect.set(backgroundBounds);
  if (isVisible()) {
    int edgePadding=rv.getMaxScrollbarWidth();
    int bgPadding=(originalBackgroundSize - textBounds.height()) / 2;
    int bgHeight=originalBackgroundSize;
    int bgWidth=Math.max(originalBackgroundSize,textBounds.width() + (2 * bgPadding));
    if (Utilities.isRtl(resources)) {
      backgroundBounds.left=rv.getBackgroundPadding().left + (2 * rv.getMaxScrollbarWidth());
      backgroundBounds.right=backgroundBounds.left + bgWidth;
    }
 else {
      backgroundBounds.right=rv.getWidth() - rv.getBackgroundPadding().right - (2 * rv.getMaxScrollbarWidth());
      backgroundBounds.left=backgroundBounds.right - bgWidth;
    }
    backgroundBounds.top=lastTouchY - (int)(FAST_SCROLL_OVERLAY_Y_OFFSET_FACTOR * bgHeight);
    backgroundBounds.top=Math.max(edgePadding,Math.min(backgroundBounds.top,rv.getHeight() - edgePadding - bgHeight));
    backgroundBounds.bottom=backgroundBounds.top + bgHeight;
  }
 else {
    backgroundBounds.setEmpty();
  }
  invalidateRect.union(backgroundBounds);
  return invalidateRect;
}

protected Rect updateFastScrollerBounds ( FastScrollRecyclerView rv , int lastTouchY ) { invalidateRect . set ( backgroundBounds ) ; if ( isVisible ( ) ) { int edgePadding = rv . getMaxScrollbarWidth ( ) ; int bgPadding = ( originalBackgroundSize - textBounds . height ( ) ) / 2 ; int bgHeight = originalBackgroundSize ; int bgWidth = Math . max ( originalBackgroundSize , textBounds . width ( ) + ( 2 * bgPadding ) ) ; if ( Utilities . isRtl ( resources ) ) { backgroundBounds . left = rv . getBackgroundPadding ( ) . left + ( 2 * rv . getMaxScrollbarWidth ( ) ) ; backgroundBounds . right = backgroundBounds . left + bgWidth ; } else { backgroundBounds . right = rv . getWidth ( ) - rv . getBackgroundPadding ( ) . right - ( 2 * rv . getMaxScrollbarWidth ( ) ) ; backgroundBounds . left = backgroundBounds . right - bgWidth ; } backgroundBounds . top = lastTouchY - ( int ) ( FAST_SCROLL_OVERLAY_Y_OFFSET_FACTOR * bgHeight ) ; backgroundBounds . top = Math . max ( edgePadding , Math . min ( backgroundBounds . top , rv . getHeight ( ) - edgePadding - bgHeight ) ) ; backgroundBounds . bottom = backgroundBounds . top + bgHeight ; } else { backgroundBounds . setEmpty ( ) ; } invalidateRect . union ( backgroundBounds ) ; return invalidateRect ; }
updates the bounds for the fast scroller .
