public final class OverscrollHelper
extends java.lang.Object
| Constructor and Description |
|---|
OverscrollHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
overScrollBy(PullToRefreshBase<?> view,
int deltaX,
int scrollX,
int deltaY,
int scrollY,
boolean isTouchEvent)
Helper method for Overscrolling that encapsulates all of the necessary
function.
|
static void |
overScrollBy(PullToRefreshBase<?> view,
int deltaX,
int scrollX,
int deltaY,
int scrollY,
int scrollRange,
boolean isTouchEvent)
Helper method for Overscrolling that encapsulates all of the necessary
function.
|
static void |
overScrollBy(PullToRefreshBase<?> view,
int deltaX,
int scrollX,
int deltaY,
int scrollY,
int scrollRange,
int fuzzyThreshold,
float scaleFactor,
boolean isTouchEvent)
Helper method for Overscrolling that encapsulates all of the necessary
function.
|
public static void overScrollBy(PullToRefreshBase<?> view, int deltaX, int scrollX, int deltaY, int scrollY, boolean isTouchEvent)
view - - PullToRefreshView that is calling this.deltaX - - Change in X in pixels, passed through from from
overScrollBy callscrollX - - Current X scroll value in pixels before applying deltaY,
passed through from from overScrollBy calldeltaY - - Change in Y in pixels, passed through from from
overScrollBy callscrollY - - Current Y scroll value in pixels before applying deltaY,
passed through from from overScrollBy callisTouchEvent - - true if this scroll operation is the result of a
touch event, passed through from from overScrollBy callpublic static void overScrollBy(PullToRefreshBase<?> view, int deltaX, int scrollX, int deltaY, int scrollY, int scrollRange, boolean isTouchEvent)
view - - PullToRefreshView that is calling this.deltaX - - Change in X in pixels, passed through from from
overScrollBy callscrollX - - Current X scroll value in pixels before applying deltaY,
passed through from from overScrollBy calldeltaY - - Change in Y in pixels, passed through from from
overScrollBy callscrollY - - Current Y scroll value in pixels before applying deltaY,
passed through from from overScrollBy callscrollRange - - Scroll Range of the View, specifically needed for
ScrollViewisTouchEvent - - true if this scroll operation is the result of a
touch event, passed through from from overScrollBy callpublic static void overScrollBy(PullToRefreshBase<?> view, int deltaX, int scrollX, int deltaY, int scrollY, int scrollRange, int fuzzyThreshold, float scaleFactor, boolean isTouchEvent)
view - - PullToRefreshView that is calling this.deltaX - - Change in X in pixels, passed through from from
overScrollBy callscrollX - - Current X scroll value in pixels before applying deltaY,
passed through from from overScrollBy calldeltaY - - Change in Y in pixels, passed through from from
overScrollBy callscrollY - - Current Y scroll value in pixels before applying deltaY,
passed through from from overScrollBy callscrollRange - - Scroll Range of the View, specifically needed for
ScrollViewfuzzyThreshold - - Threshold for which the values how fuzzy we
should treat the other values. Needed for WebView as it
doesn't always scroll back to it's edge. 0 = no fuzziness.scaleFactor - - Scale Factor for overscroll amountisTouchEvent - - true if this scroll operation is the result of a
touch event, passed through from from overScrollBy call