0

I'm trying to make some auto fill grid, but without know the width from every item. So, the width from child can be deferent in every row and every column. It only depends from a TextView.

I want something like this.

I Want this

I'm tried with GridLayout and android:numColumns="auto_fit" but isn't what I'm looking for. I also check this post but is basically same as GridLayout. Anyone know some other solutions??

2 Answers2

3

Flexbox-Layout is a project by Google to provide both a simple view and a RecyclerView layout manager that does what you want. https://github.com/google/flexbox-layout

Ben P.
  • 52,661
  • 6
  • 95
  • 123
0

I think the following tutorial might be a solution for the current problem u r facing Tutorial

Hope it helps ;)

Aliy
  • 406
  • 6
  • 21