Genaut
Genaut

Reputation: 1851

LinearLayout Android put elements inline horizontal

I have a list of elements inside a Linear Layout with horizontal orientation. I need that this elements move to next row when the size exceeds the width of the screen. (Like float left elements in CSS)

enter image description here

Some of this elements will be hidden in runtine so I don't want make nested layouts or TableLayout solution. Can someone recommend me something to solve this?

I was reading and found this library: https://github.com/google/flexbox-layout But I would prefer use android sdk code if possible

Upvotes: 1

Views: 232

Answers (1)

Sra
Sra

Reputation: 106

I recommend using RecyclerView or ScrollView.

Upvotes: 2

Related Questions