Create a textView dynamically in LinearLayout

enter image description here

But the question arises how to be if there are too many tags and they do not fit on one line. How to implement the transfer to the next?

enter image description here

Maybe someone knows how to solve this problem.

Reported as a duplicate by members pavlofff , D-side , Bald , cheops , aleksandr barakin Jul 13 '16 at 6:14 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

  • And how are you ready solutions from this commentary to your past did not suit a similar question? - pavlofff

2 answers 2

You can use the library android-flowlayout or FlowLayout There is also the official Google FlexboxLayot solution with similar and even much more functionality.

  • one
    FlowLayout helped a lot. Thank you so much - kalugin1912
  • one
    There is the official Google solution FlexboxLayot with similar and even much greater functionality - pavlofff
  • @pavlofff, add to the answer - katso

Please look towards TableLayout. Grid markup in my opinion is probably best to use here.