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@3a90c857: Direction to scroll (see annotationclass MotionDir)amountInDP - org.jetbrains.dokka.NodeRenderContent@a8013a7: Density Independent PixelsstartOffsetPercentX - org.jetbrains.dokka.NodeRenderContent@8afc0a5: Percentage denoting where X-swipe should start, with respect to the scrollable view. Null means select automatically.startOffsetPercentY - org.jetbrains.dokka.NodeRenderContent@4e928c6: 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@38878a7c: Direction to scroll (see @MotionDir)