本文整理汇总了Java中android.support.test.espresso.action.Swipe.SLOW属性的典型用法代码示例。如果您正苦于以下问题:Java Swipe.SLOW属性的具体用法?Java Swipe.SLOW怎么用?Java Swipe.SLOW使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类android.support.test.espresso.action.Swipe
的用法示例。
在下文中一共展示了Swipe.SLOW属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: swipeRightNotReachingThreshold
static ViewAction swipeRightNotReachingThreshold(Context context) {
final float x = getWidthScreen(context) * 0.3f;
return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_LEFT, new CoordinatesProvider() {
@Override public float[] calculateCoordinates(View view) {
return new float[] {x, 0f};
}
}, Press.FINGER);
}
示例2: swipeRightReachingThreshold
static ViewAction swipeRightReachingThreshold(Context context) {
final float x = getWidthScreen(context) * 0.8f;
return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_LEFT, new CoordinatesProvider() {
@Override public float[] calculateCoordinates(View view) {
return new float[] {x, 0f};
}
}, Press.FINGER);
}
示例3: swipeDownNotReachingThreshold
static ViewAction swipeDownNotReachingThreshold(Context context) {
final float y = getHeightScreen(context) * 0.3f;
return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_LEFT, new CoordinatesProvider() {
@Override public float[] calculateCoordinates(View view) {
return new float[] {0f, y};
}
}, Press.FINGER);
}
示例4: swipeDownReachingThreshold
static ViewAction swipeDownReachingThreshold(Context context) {
final float y = getHeightScreen(context) * 0.8f;
return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_LEFT, new CoordinatesProvider() {
@Override public float[] calculateCoordinates(View view) {
return new float[] {0f, y};
}
}, Press.FINGER);
}
示例5: 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);
}
示例6: swipeDown
public static ViewAction swipeDown() {
return new GeneralSwipeAction(Swipe.SLOW, 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);
}