How to display images in recycler view with different sizes

Viewed 2073

i want to display images in Recycler View

like this

You can see images have no fixed height and width. just randomly shown in different sizes. i have considered StaggeredLayoutManager for recyclerview but the problem with that we have to show vertically or horizontally with fixed height in that. Can anyone help?

2 Answers

Make different kind of viewholders in your recyclerview adapter and inflate views according to image types

Related