This question has already been answered:
I need to arrange a lot of buttons in a row (horizontally). For all buttons, the width is set as wrap_content
. I have them in LinearLayout
(horizontal). The problem is that if the total width of all buttons exceeds the width of the device screen, the buttons are not automatically transferred to the next line, but flattened into a thin strip at the end of the screen.
Question: how to make autotransfer of buttons?