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

The following are Jave code examples for showing how to use TOP_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.
Example 1
Project: material-activity-chooser   File: ViewActions.java   Source Code and License 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: material-activity-chooser   File: ViewActions.java   Source Code and License Vote up 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
Project: SwipeOpenItemTouchHelper   File: SwipeOpenItemTouchHelperTest.java   Source Code and License 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 4
Project: material-activity-chooser   File: ViewActions.java   Source Code and License Vote up 4 votes
public static ViewAction clickOnTop() {
    return new GeneralClickAction(Tap.SINGLE, GeneralLocation.TOP_CENTER, Press.FINGER);
}
 
Example 5
Project: tagscout   File: TagsScreenTest.java   Source Code and License Vote up 4 votes
public static ViewAction swipeDown() {
    return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_CENTER,
                                  GeneralLocation.BOTTOM_CENTER, Press.FINGER
    );
}
 
Example 6
Project: PrettyBundle   File: ExtViewActions.java   Source Code and License Vote up 4 votes
public static ViewAction swipeTop() {
    return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.BOTTOM_CENTER, GeneralLocation.TOP_CENTER, Press.FINGER);
}
 
Example 7
Project: PrettyBundle   File: ExtViewActions.java   Source Code and License Vote up 4 votes
public static ViewAction swipeBottom() {
    return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER, GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
 
Example 8
Project: agera   File: MainActivityTest.java   Source Code and License Vote up 4 votes
private static ViewAction swipeDown() {
  return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER,
      GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
 
Example 9
Project: agera   File: MainActivityTest.java   Source Code and License Vote up 4 votes
private static ViewAction swipeDown() {
  return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER,
      GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
 
Example 10
Project: RxBinding   File: RxSwipeRefreshLayoutTest.java   Source Code and License Vote up 4 votes
private static ViewAction swipeDown() {
  return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_CENTER,
      GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
 
Example 11
Project: u2020-mvp   File: ViewActions.java   Source Code and License Vote up 4 votes
public static ViewAction swipeTop() {
    return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.BOTTOM_CENTER, GeneralLocation.TOP_CENTER, Press.FINGER);
}
 
Example 12
Project: u2020-mvp   File: ViewActions.java   Source Code and License Vote up 4 votes
public static ViewAction swipeBottom() {
    return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER, GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}