RecyclerView scrolled UP/DOWN listener

The accepted answer works fine, but @MaciejPigulski gave more clear and neat solution in the comment below. I just putting it as an answer here. Here’s my working code. mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { super.onScrolled(recyclerView, dx, dy); if (dy > 0) { // Scrolling up } else … Read more

How to implement setOnScrollListener in RecyclerView

Activity Class with recylcerview in xml layout file public class WallpaperActivity extends AppCompatActivity implements OnTaskCompleted { private static final String TAG = “WallpaperActivity”; private Toolbar toolbar; private RecyclerView mRecyclerView; private WallPaperDataAdapter mAdapter; private LinearLayoutManager mLayoutManager; // to keep track which pages loaded and next pages to load public static int pageNumber; private List<WallPaper> wallpaperImagesList; protected … Read more