public class InteractionUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
InteractionUtil.Scroller
Class that keeps track of the scroll position of provided
RecyclerView , and provides
APIs to request scroll to a certain position |
Constructor and Description |
---|
InteractionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
click(LithoView lithoView,
String testKey) |
static void |
click(Point location) |
static void |
click(View view) |
static void |
clickBottom(LithoView lithoView,
String testKey) |
static void |
scrollTo(RecyclerView recyclerView,
int targetScrollY)
Deprecated.
as it is based on
RecyclerView#computeVerticalScrollOffset() which only
returns estimated scroll position, which may lead to the method hanging forever (or until
hitting max iterations count) Please, consider using InteractionUtil.Scroller instead |
@Deprecated public static void scrollTo(RecyclerView recyclerView, int targetScrollY)
RecyclerView#computeVerticalScrollOffset()
which only
returns estimated scroll position, which may lead to the method hanging forever (or until
hitting max iterations count) Please, consider using InteractionUtil.Scroller
insteadpublic static void click(View view)
public static void click(Point location)