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?

+3


source to share


2 answers


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.

0


source


No, there is currently no way. RecyclerView

does not do fast scrolling like ListView

, so the only way to do it is implemented myself.



-1


source







All Articles