In Android, is there a way to implement fast scrolling in the new RecyclerView?
I converted all large components ListView
in my application to a new one RecyclerView
using the v7 support library. And they work much better / faster / smoother. But I can't seem to find a way to scroll quickly (like a method setFastScrollEnabled()
in a ListView). Is there a way to make this work?
source to share
Take a look at the answer I gave for the next post. I don't know if this will help you, but this is only my first version.
Android L: Fast Scrolling for RecyclerView
i uses recyclerView.scrollToPosition (psoition); not recyclerView.smoothScrollToPosition (position); because reyclerview basically goes through the whole list to get to the position and it takes a long time if you have a long list.
source to share