I programmatically add a button (any view) into a LinearLayout
with horizontal orientation.
How to make them be automatically placed on the next line?
Here is my question but without any answer.
I programmatically add a button (any view) into a LinearLayout
with horizontal orientation.
How to make them be automatically placed on the next line?
Here is my question but without any answer.
Sounds like you need a FlowLayout
, there are tremendous libraries around about this (ex. https://github.com/ApmeM/android-flowlayout)