ViewPagerActions
public final class ViewPagerActions
extends Object
java.lang.Object | |
↳ | android.support.test.espresso.contrib.ViewPagerActions |
Espresso actions for interacting with a ViewPager
.
Summary
Public methods | |
---|---|
static ViewAction | clickBetweenTwoTitles(String title1, String title2) Clicks between two titles in a |
static ViewAction | scrollLeft(boolean smoothScroll) Moves |
static ViewAction | scrollLeft() Moves |
static ViewAction | scrollRight() Moves |
static ViewAction | scrollRight(boolean smoothScroll) Moves |
static ViewAction | scrollToFirst(boolean smoothScroll) Moves |
static ViewAction | scrollToFirst() Moves |
static ViewAction | scrollToLast(boolean smoothScroll) Moves |
static ViewAction | scrollToLast() Moves |
static ViewAction | scrollToPage(int page) Moves |
static ViewAction | scrollToPage(int page, boolean smoothScroll) Moves |
Inherited methods | |
---|---|
![]() java.lang.Object |
Public methods
clickBetweenTwoTitles
ViewAction clickBetweenTwoTitles (String title1, String title2)
Clicks between two titles in a ViewPager
title strip
Parameters | |
---|---|
title1 | String |
title2 | String |
Returns | |
---|---|
ViewAction |
scrollLeft
ViewAction scrollLeft (boolean smoothScroll)
Moves ViewPager
to the left by one page.
Parameters | |
---|---|
smoothScroll | boolean |
Returns | |
---|---|
ViewAction |
scrollRight
ViewAction scrollRight (boolean smoothScroll)
Moves ViewPager
to the right by one page.
Parameters | |
---|---|
smoothScroll | boolean |
Returns | |
---|---|
ViewAction |
scrollToFirst
ViewAction scrollToFirst (boolean smoothScroll)
Moves ViewPager
to the first page.
Parameters | |
---|---|
smoothScroll | boolean |
Returns | |
---|---|
ViewAction |
scrollToLast
ViewAction scrollToLast (boolean smoothScroll)
Moves ViewPager
to the last page.
Parameters | |
---|---|
smoothScroll | boolean |
Returns | |
---|---|
ViewAction |
scrollToPage
ViewAction scrollToPage (int page)
Moves ViewPager
to a specific page.
Parameters | |
---|---|
page | int |
Returns | |
---|---|
ViewAction |
scrollToPage
ViewAction scrollToPage (int page, boolean smoothScroll)
Moves ViewPager
to specific page.
Parameters | |
---|---|
page | int |
smoothScroll | boolean |
Returns | |
---|---|
ViewAction |