I'm using a RecyclerView in conjunction with PagedListAdapter
to fetch images from a rest API. The RecyclerView fetches more images as needed when I scroll through it. I would like to simulate scrolling very fast through the RecyclerView but still have onBindViewHolder() get called for each item since the logic inside there is important. Ideally I would like to be at position 50 in the RecyclerView and be able to do something like mRecyclerView.scrollToPosition(300);
but that doesn't work since position 300
doesn't exist yet.
Is there a way to programmatically scroll the recyclerView so that it effectively does the same thing as me manually scrolling through it?