Skip to content

Tag: android-recyclerview

How to make a custom-shaped Recycler View?

I need to make a recycler view whose elements will wrap around the ImageView (like this: https://imgur.com/a/7NpCHri). Is there a way to implement this? Answer You can create adapter with GridLayoutManager and for items with indexes 6, 7, 10, 11 make empty transparent views. But as it were said in comment it is not appropriate use of RV. Maybe it

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 and my XML; 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 :