How to design paginated scrollbar for RecyclerView

370 Views Asked by At

I saw this horizontal RecyclerView with a custom scrollbar. The scrollbar features a dot for each item, the select indicator slides gracefully to the next dot as you slide the items right and left.

The sample can be found below:

enter image description here

Example gif

Please do you know how I can make something similar?

1

There are 1 best solutions below

0
Amad Yus On

The result can be achieved by using viewPager. You can refer to Android developer documentation on how to implement viewpager. Brief explanation can be found here. For the indicator, you can create circle shape and apply the animation by yourself or there are tons of library out there you can rely with; for example InkPageIndidcator