sqd
sqd

Reputation: 1535

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?

Upvotes: 7

Views: 4318

Answers (2)

sqd
sqd

Reputation: 1535

Google's new FlexboxLayoutManager is the answer.

Upvotes: 12

phatnhse
phatnhse

Reputation: 3940

How about creating the vertical RecyclerView whose items is horizontal RecyclerView enter image description here

Upvotes: 1

Related Questions