Read More

Adding fast scroller to your recyclerview

Fast scrolling is one of the oldest features provided by Android and other OS(s) as well. This feature helps you to scroll easily in a list which can be huge in size and makes it pretty fast and simple to search for a particular element.

Implementing this is very easy using a library named as Recycler-Fast-Scroll provided by FutureMind.

To get the fast scrolling. First, you need to add the dependency to your module level build.gradle.

After this, you need to add the scrolling layout in the view and for that open the XML file of your activity or fragment and add the following code

This will provide you the bar which will be used to scroll through the recyclerview elements and it is customizable too.

Now, you need to attach this fast_scroller to the recyclerview and for that, you can follow the below code segment

And to get the bubble which will display the character you need implement SectionTitleProvider in the recyclerview adapter and override its getSectionTitle function.

 

That’s all, You can enjoy your fast scrolling feature wherever you want.

Thank you very much, this is Vedesh Kumar signing off.

. . .

Comment

Add Your Comment

Be the first to comment.

css.php
Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again
Close