本文整理汇总了Java中android.support.test.espresso.action.Swipe.FAST属性的典型用法代码示例。如果您正苦于以下问题:Java Swipe.FAST属性的具体用法?Java Swipe.FAST怎么用?Java Swipe.FAST使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类android.support.test.espresso.action.Swipe
的用法示例。
在下文中一共展示了Swipe.FAST属性的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: swipeBottomSheetUp
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);
}
示例3: swipeRight
private static ViewAction swipeRight() {
return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.CENTER_LEFT,
GeneralLocation.CENTER_RIGHT, Press.FINGER);
}
示例4: swipeLeft
private static ViewAction swipeLeft() {
return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.CENTER_RIGHT,
GeneralLocation.CENTER_LEFT, Press.FINGER);
}
示例5: swipeTop
public static ViewAction swipeTop() {
return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.BOTTOM_CENTER, GeneralLocation.TOP_CENTER, Press.FINGER);
}
示例6: swipeBottom
public static ViewAction swipeBottom() {
return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER, GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
示例7: swipeDown
private static ViewAction swipeDown() {
return new GeneralSwipeAction(Swipe.FAST, GeneralLocation.TOP_CENTER,
GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}