当前位置: 首页>>代码示例>>Java>>正文


Java Swipe.SLOW属性代码示例

本文整理汇总了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);
}
 
开发者ID:VictorAlbertos,项目名称:SwipeCoordinator,代码行数:8,代码来源:ViewActions.java

示例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);
}
 
开发者ID:VictorAlbertos,项目名称:SwipeCoordinator,代码行数:8,代码来源:ViewActions.java

示例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);
}
 
开发者ID:VictorAlbertos,项目名称:SwipeCoordinator,代码行数:8,代码来源:ViewActions.java

示例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);
}
 
开发者ID:VictorAlbertos,项目名称:SwipeCoordinator,代码行数:8,代码来源:ViewActions.java

示例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);
}
 
开发者ID:alex-townsend,项目名称:SwipeOpenItemTouchHelper,代码行数:8,代码来源:SwipeOpenItemTouchHelperTest.java

示例6: swipeDown

public static ViewAction swipeDown() {
    return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_CENTER,
                                  GeneralLocation.BOTTOM_CENTER, Press.FINGER
    );
}
 
开发者ID:malmstein,项目名称:tagscout,代码行数:5,代码来源:TagsScreenTest.java

示例7: swipeDown

private static ViewAction swipeDown() {
  return new GeneralSwipeAction(Swipe.SLOW, GeneralLocation.TOP_CENTER,
      GeneralLocation.BOTTOM_CENTER, Press.FINGER);
}
 
开发者ID:JakeWharton,项目名称:RxBinding,代码行数:4,代码来源:RxSwipeRefreshLayoutTest.java


注:本文中的android.support.test.espresso.action.Swipe.SLOW属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。