Java Code Examples for android.support.test.espresso.action.GeneralLocation.BOTTOM_CENTER

The following are Jave code examples for showing how to use BOTTOM_CENTER of the android.support.test.espresso.action.GeneralLocation class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: material-activity-chooser   File: ViewActions.java   View Source Code Vote up 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
Project: SwipeOpenItemTouchHelper   File: SwipeOpenItemTouchHelperTest.java   View Source Code Vote up 4 votes
/**
 * Uses a slow swipe to simulate a scroll
 * @return the view action
 */
private ViewAction scroll() {
  return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.BOTTOM_CENTER,
      GeneralLocation.TOP_CENTER, Press.FINGER);
}
 
Example 3
Project: tagscout   File: TagsScreenTest.java   View Source Code Vote up 4 votes
public static ViewAction swipeDown() {
    return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_CENTER,
                                  GeneralLocation.BOTTOM_CENTER, Press.FINGER
    );
}
 
Example 4
Project: PrettyBundle   File: ExtViewActions.java   View Source Code Vote up 4 votes
public static ViewAction swipeTop() {
    return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.BOTTOM_CENTER, GeneralLocation.TOP_CENTER, Press.FINGER);
}
 
Example 5
Project: PrettyBundle   File: ExtViewActions.java   View Source Code Vote up 4 votes
public static ViewAction swipeBottom() {
    return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER, GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
 
Example 6
Project: agera   File: MainActivityTest.java   View Source Code Vote up 4 votes
private static ViewAction swipeDown() {
  return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER,
      GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
 
Example 7
Project: agera   File: MainActivityTest.java   View Source Code Vote up 4 votes
private static ViewAction swipeDown() {
  return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER,
      GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
 
Example 8
Project: RxBinding   File: RxSwipeRefreshLayoutTest.java   View Source Code Vote up 4 votes
private static ViewAction swipeDown() {
  return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_CENTER,
      GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
 
Example 9
Project: u2020-mvp   File: ViewActions.java   View Source Code Vote up 4 votes
public static ViewAction swipeTop() {
    return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.BOTTOM_CENTER, GeneralLocation.TOP_CENTER, Press.FINGER);
}
 
Example 10
Project: u2020-mvp   File: ViewActions.java   View Source Code Vote up 4 votes
public static ViewAction swipeBottom() {
    return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER, GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}