Victory
Victory

Reputation: 1232

Recycler view with auto span count and item width with wrap content

I have a RecyclerView with a GridLayoutManger. I want to use dynamic span count depend on item width.

I don't want fixed item width.

example

Upvotes: 0

Views: 873

Answers (1)

Axbor Axrorov
Axbor Axrorov

Reputation: 2806

You can use FlexboxLayoutManager from google:

enter image description here

https://github.com/google/flexbox-layout

Upvotes: 1

Related Questions