本文整理汇总了Java中android.support.test.espresso.action.GeneralLocation.BOTTOM_CENTER属性的典型用法代码示例。如果您正苦于以下问题:Java GeneralLocation.BOTTOM_CENTER属性的具体用法?Java GeneralLocation.BOTTOM_CENTER怎么用?Java GeneralLocation.BOTTOM_CENTER使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类android.support.test.espresso.action.GeneralLocation
的用法示例。
在下文中一共展示了GeneralLocation.BOTTOM_CENTER属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: swipeBottomSheetDown
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);
}
示例2: scroll
/**
* 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);
}
示例3: swipeDown
public static ViewAction swipeDown() {
return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_CENTER,
GeneralLocation.BOTTOM_CENTER, Press.FINGER
);
}
示例4: swipeTop
public static ViewAction swipeTop() {
return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.BOTTOM_CENTER, GeneralLocation.TOP_CENTER, Press.FINGER);
}
示例5: swipeBottom
public static ViewAction swipeBottom() {
return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER, GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
示例6: swipeDown
private static ViewAction swipeDown() {
return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER,
GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
示例7: swipeDown
private static ViewAction swipeDown() {
return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_CENTER,
GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}