Skip to content
Advertisement

How to scroll one to one in recycler view?

this is my adapter

I want to scroll one item each time i scroll. Like when you see multiple images post on instagram. How can i do that?

Thanks

JavaScript

and my XML;

JavaScript

Advertisement

Answer

You can use a SnapHelper by attaching it to your RecyclerView with SnapHalper.attachToRecyclerView() and you will have a Scroll effect like instagram for example :

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement