Is there a way for me to set starting position for recyclerview, so when the user installs the app for the first time, and starts the app, the recyclerview will be shown at some position, and not from the start?
I have been using:
recyclerView.scrollToPosition(myPosition, 0)
But since the app is started for the first time, it is always default position shown in the recyclerview. The first param (myPosition) is set in the onBindViewHolder function.
I think this happens because recyclerview creates and destroys views while scrolling, so probably I would need to first iterate through the whole list, but not sure if the views will get destroyed in the end.