How to arrange the buttons one after another in a row?

A simple question, but not solve.
It is necessary that the buttons were located in a row, and if there is not enough space, then they were transferred to the other line.
Now I have buttons outside the screen №9, №10 are placed.
Used GridLayout LinearLayout then two, but nothing happens.
March 23rd 20 at 18:52
1 answer
March 23rd 20 at 18:54
Use the solution from Google
Thanks, interesting solution, I'll have a look.
Didn't think so difficult. - kaela_Harv commented on March 23rd 20 at 18:57

Find more questions by tags AndroidJava