0

I'm trying to achieve this

I'm trying to achieve this using a GridLayoutManager, It's possible to set the span size using a lookup, but I can't find a way to set the span to something like wrap_content.

This other question solve the problem if you know before hand the size but not when it's dynamic like on this image.

Community
  • 1
  • 1
Tiago Ribeiro
  • 351
  • 1
  • 9

1 Answers1

2

You probably want something like a FlowLayout. There are a number of implementations on GitHub

vladimir123
  • 484
  • 6
  • 12
  • Thanks, I'm using the hongyangAndroid/FlowLayout. I could not figure out how to centre but it's closer to the final result I want to achive. – Tiago Ribeiro Oct 03 '16 at 21:53