Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a multiline horizontal StaggeredGridLayoutManager with RecyclerView?

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?

like image 861
sqd Avatar asked Jul 27 '17 11:07

sqd


1 Answers

Google's new FlexboxLayoutManager is the answer.

like image 75
sqd Avatar answered Oct 18 '22 11:10

sqd