@Test public void testRequireScroll() { mDelegate.startListening(); verify(mRequireScrollMixin).notifyScrollabilityChange(true); }
@Override public void startListening() { if (mRecyclerView != null) { mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { mRequireScrollMixin.notifyScrollabilityChange(canScrollDown()); } }); if (canScrollDown()) { mRequireScrollMixin.notifyScrollabilityChange(true); } } else { Log.w(TAG, "Cannot require scroll. Recycler view is null."); } }
RecyclerViewScrollHandlingDelegate implements ScrollHandlingDelegate { @Override public void startListening() { if (mRecyclerView != null) { mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { mRequireScrollMixin.notifyScrollabilityChange(canScrollDown()); } }); if (canScrollDown()) { mRequireScrollMixin.notifyScrollabilityChange(true); } } else { Log.w(TAG, "Cannot require scroll. Recycler view is null."); } } }
RecyclerViewScrollHandlingDelegate implements ScrollHandlingDelegate { @Override public void startListening() { if (mRecyclerView != null) { mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { mRequireScrollMixin.notifyScrollabilityChange(canScrollDown()); } }); if (canScrollDown()) { mRequireScrollMixin.notifyScrollabilityChange(true); } } else { Log.w(TAG, "Cannot require scroll. Recycler view is null."); } } RecyclerViewScrollHandlingDelegate(
            @NonNull RequireScrollMixin requireScrollMixin,
            @Nullable RecyclerView recyclerView); }
RecyclerViewScrollHandlingDelegate implements ScrollHandlingDelegate { @Override public void startListening() { if (mRecyclerView != null) { mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { mRequireScrollMixin.notifyScrollabilityChange(canScrollDown()); } }); if (canScrollDown()) { mRequireScrollMixin.notifyScrollabilityChange(true); } } else { Log.w(TAG, "Cannot require scroll. Recycler view is null."); } } RecyclerViewScrollHandlingDelegate(
            @NonNull RequireScrollMixin requireScrollMixin,
            @Nullable RecyclerView recyclerView); @Override void startListening(); @Override void pageScrollDown(); }
RecyclerViewScrollHandlingDelegate implements ScrollHandlingDelegate { @Override public void startListening() { if (mRecyclerView != null) { mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { mRequireScrollMixin.notifyScrollabilityChange(canScrollDown()); } }); if (canScrollDown()) { mRequireScrollMixin.notifyScrollabilityChange(true); } } else { Log.w(TAG, "Cannot require scroll. Recycler view is null."); } } RecyclerViewScrollHandlingDelegate(
            @NonNull RequireScrollMixin requireScrollMixin,
            @Nullable RecyclerView recyclerView); @Override void startListening(); @Override void pageScrollDown();  }