The question is published on by Tutorial Guruji team.
My Idea is adding TextViews with rounded corners background to a horizontal LinearLayout, so if next one wouldn’t fit – I will add TextView to another LinearLayout below.
Is there a way to do so? I know it sound like a custom view, but I would like not to bother as much – to adjust height, make click area calculations istead of simple clickListeners
Sounds like a recyclerview using a flexbox layout https://github.com/google/flexbox-layout with
flexWrap turned on.
You could also use is in a static layout as well.
flexWrap it does all the calculations to see if the “item” can fit on a line and if not starts a new line.
Many examples on the github page.