Osvel Alvarez Jacomino
Osvel Alvarez Jacomino

Reputation: 729

Custom GridLayout

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??

Upvotes: 0

Views: 1131

Answers (2)

Ben P.
Ben P.

Reputation: 54204

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

Upvotes: 3

Aliy
Aliy

Reputation: 406

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

Hope it helps ;)

Upvotes: 0

Related Questions