@Test public void testCircularScrollingGesture() throws Throwable { onView(withId(R.id.wrv)).perform(swipeDownFromTopRight()); assertNotScrolledY(R.id.wrv); mActivityRule.runOnUiThread(new Runnable() { @Override public void run() { WearableRecyclerView wrv = (WearableRecyclerView) mActivityRule.getActivity().findViewById(R.id.wrv); wrv.setCircularScrollingGestureEnabled(true); } }); onView(withId(R.id.wrv)).perform(swipeDownFromTopRight()); assertScrolledY(R.id.wrv); }
public void setCircularScrollingGestureEnabled(boolean circularScrollingGestureEnabled) { mCircularScrollingEnabled = circularScrollingGestureEnabled; }
WearableRecyclerView extends RecyclerView { public void setCircularScrollingGestureEnabled(boolean circularScrollingGestureEnabled) { mCircularScrollingEnabled = circularScrollingGestureEnabled; } }
WearableRecyclerView extends RecyclerView { public void setCircularScrollingGestureEnabled(boolean circularScrollingGestureEnabled) { mCircularScrollingEnabled = circularScrollingGestureEnabled; } WearableRecyclerView(Context context);  WearableRecyclerView(Context context, @Nullable AttributeSet attrs);  WearableRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle);  WearableRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle,
            int defStyleRes); }
WearableRecyclerView extends RecyclerView { public void setCircularScrollingGestureEnabled(boolean circularScrollingGestureEnabled) { mCircularScrollingEnabled = circularScrollingGestureEnabled; } WearableRecyclerView(Context context);  WearableRecyclerView(Context context, @Nullable AttributeSet attrs);  WearableRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle);  WearableRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle,
            int defStyleRes); @Override boolean onTouchEvent(MotionEvent event); void setCircularScrollingGestureEnabled(boolean circularScrollingGestureEnabled); boolean isCircularScrollingGestureEnabled(); void setScrollDegreesPerScreen(float degreesPerScreen); float getScrollDegreesPerScreen(); void setBezelFraction(float fraction); float getBezelFraction(); void setEdgeItemsCenteringEnabled(boolean isEnabled); boolean isEdgeItemsCenteringEnabled(); }
WearableRecyclerView extends RecyclerView { public void setCircularScrollingGestureEnabled(boolean circularScrollingGestureEnabled) { mCircularScrollingEnabled = circularScrollingGestureEnabled; } WearableRecyclerView(Context context);  WearableRecyclerView(Context context, @Nullable AttributeSet attrs);  WearableRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle);  WearableRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle,
            int defStyleRes); @Override boolean onTouchEvent(MotionEvent event); void setCircularScrollingGestureEnabled(boolean circularScrollingGestureEnabled); boolean isCircularScrollingGestureEnabled(); void setScrollDegreesPerScreen(float degreesPerScreen); float getScrollDegreesPerScreen(); void setBezelFraction(float fraction); float getBezelFraction(); void setEdgeItemsCenteringEnabled(boolean isEnabled); boolean isEdgeItemsCenteringEnabled();  }