-
- All Implemented Interfaces:
public class ScrollHelperCreated by simonracz on 09/08/2017.
-
-
Method Summary
Modifier and Type Method Description static voidperform(UiController uiController, View view, int direction, double amountInDP, Float startOffsetPercentX, Float startOffsetPercentY)Scrolls the View in a direction by the Density Independent Pixel amount. static voidperformOnce(UiController uiController, View view, int direction)Scrolls the View in a direction once by the maximum amount possible. -
-
Method Detail
-
perform
static void perform(UiController uiController, View view, int direction, double amountInDP, Float startOffsetPercentX, Float startOffsetPercentY)
Scrolls the View in a direction by the Density Independent Pixel amount.
- Parameters:
direction- Direction to scroll (see MotionDir)amountInDP- Density Independent PixelsstartOffsetPercentX- Percentage denoting where X-swipe should start, with respect to the scrollable view.startOffsetPercentY- Percentage denoting where Y-swipe should start, with respect to the scrollable view.
-
performOnce
static void performOnce(UiController uiController, View view, int direction)
Scrolls the View in a direction once by the maximum amount possible. (Till the edge of the screen.)
- Parameters:
direction- Direction to scroll (see @MotionDir)
-
-
-
-