public class ScrollHelper
Created by simonracz on 09/08/2017.
| Modifier and Type | Method and Description |
|---|---|
static void |
perform(androidx.test.espresso.UiController uiController,
android.view.View view,
int direction,
double amountInDP,
java.lang.Float startOffsetPercentX,
java.lang.Float startOffsetPercentY)
Scrolls the View in a direction by the Density Independent Pixel amount.
|
static void |
performOnce(androidx.test.espresso.UiController uiController,
android.view.View view,
int direction)
Scrolls the View in a direction once by the maximum amount possible. (Till the edge of the screen.)
|
public static void perform(androidx.test.espresso.UiController uiController,
android.view.View view,
int direction,
double amountInDP,
java.lang.Float startOffsetPercentX,
java.lang.Float startOffsetPercentY)
Scrolls the View in a direction by the Density Independent Pixel amount.
direction - org.jetbrains.dokka.NodeRenderContent@10ea9869: Direction to scroll (see annotationclass MotionDir)amountInDP - org.jetbrains.dokka.NodeRenderContent@350e9e6d: Density Independent PixelsstartOffsetPercentX - org.jetbrains.dokka.NodeRenderContent@637e5fcb: Percentage denoting where X-swipe should start, with respect to the scrollable view. Null means select automatically.startOffsetPercentY - org.jetbrains.dokka.NodeRenderContent@55c81e29: Percentage denoting where Y-swipe should start, with respect to the scrollable view. Null means select automatically.public static void performOnce(androidx.test.espresso.UiController uiController,
android.view.View view,
int direction)
Scrolls the View in a direction once by the maximum amount possible. (Till the edge of the screen.)
direction - org.jetbrains.dokka.NodeRenderContent@11a5ed29: Direction to scroll (see @MotionDir)