Is there some way to set up a LinearLayout or a ConstraintLayout to put as many views in a linear chain and simply start a new row as soon as not all views fit into the current row?
Like following:
Item1 - Item2 - Item3 - Item4
Item5 - Item6 - Item7 - Item8
Item9 - Item10
Or on a larger screen
Item1 - Item2 - Item3 - Item4 - Item5
Item6 - Item7 - Item8 - Item9 - Item10
As far as I know LinearLayout can't do this at all and ConstraintLayout does not support such line breaks inside a chain.
Any other way to get what I want? (Not programmatically calculating available space and putting LinearLayouts inside a parent LinearLayout container, I know how to do this - I'm looking for a more beautiful solution).