Java Code Examples for android.support.test.espresso.action.Press

The following are top voted examples for showing how to use
android.support.test.espresso.action.Press. These examples are extracted from open source projects.
You can vote up the examples you like and your votes will be used in our system to generate
more good examples.

public static ViewAction swipeBottomSheetDown() {
/* The default swipe action has a constraint where the swiped view has to be displayed in at least 90%,
* which is not the case with bottom sheets...
*/
return new NoConstraintsSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER,
GeneralLocation. BOTTOM_CENTER, Press.FINGER);
}

public static ViewAction swipeBottomSheetUp() {
/* The default swipe action has a constraint where the swiped view has to be displayed in at least 90%,
* which is not the case with bottom sheets...
*/
return new NoConstraintsSwipeAction(Swipe.FAST, GeneralLocation.VISIBLE_CENTER,
GeneralLocation. TOP_CENTER, Press.FINGER);
}