Java Code Examples for android.support.test.espresso.action.Swipe#FAST
The following examples show how to use
android.support.test.espresso.action.Swipe#FAST .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ViewActions.java From material-activity-chooser with Apache License 2.0 | 5 votes |
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); }
Example 2
Source File: ViewActions.java From material-activity-chooser with Apache License 2.0 | 5 votes |
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); }
Example 3
Source File: ExtViewActions.java From PrettyBundle with Apache License 2.0 | 4 votes |
public static ViewAction swipeTop() { return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.BOTTOM_CENTER, GeneralLocation.TOP_CENTER, Press.FINGER); }
Example 4
Source File: ExtViewActions.java From PrettyBundle with Apache License 2.0 | 4 votes |
public static ViewAction swipeBottom() { return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER, GeneralLocation.BOTTOM_CENTER, Press.FINGER); }
Example 5
Source File: MainActivityTest.java From agera with Apache License 2.0 | 4 votes |
private static ViewAction swipeDown() { return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER, GeneralLocation.BOTTOM_CENTER, Press.FINGER); }
Example 6
Source File: MainActivityTest.java From agera with Apache License 2.0 | 4 votes |
private static ViewAction swipeDown() { return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER, GeneralLocation.BOTTOM_CENTER, Press.FINGER); }
Example 7
Source File: ViewActions.java From u2020-mvp with Apache License 2.0 | 4 votes |
public static ViewAction swipeTop() { return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.BOTTOM_CENTER, GeneralLocation.TOP_CENTER, Press.FINGER); }
Example 8
Source File: ViewActions.java From u2020-mvp with Apache License 2.0 | 4 votes |
public static ViewAction swipeBottom() { return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER, GeneralLocation.BOTTOM_CENTER, Press.FINGER); }