How to make a multiline horizontal StaggeredGridLayoutManager with RecyclerView?

Viewed 3855

I have some tags, and I want to place them this way so that the user can tap on them. (each brick has a tag in it)

enter image description here

The problem is that there may be many tags and I can't know beforehand how many lines I need. How do I implement this?

2 Answers
Related