Package 

Class ScrollHelper

  • All Implemented Interfaces:

    
    public class ScrollHelper
    
                        

    Created by simonracz on 09/08/2017.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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.
      static void performOnce(UiController uiController, View view, int direction) Scrolls the View in a direction once by the maximum amount possible.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 Pixels
        startOffsetPercentX - 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)