0

I have a layout with a fixed width and variable height. In this layout I want to have a variable number of buttons of variable width but fixed height. If the sum of the widths of the buttons is greater than the total width of the layout then the buttons should spillover to the next row. The number of rows is also variable. How to ensure the extra buttons spill over to the next row?

Desired View Result

suku
  • 10,507
  • 16
  • 75
  • 120
  • 2
    This sounds like Swing's FlowLayout: http://stackoverflow.com/questions/4474237/how-can-i-do-something-like-a-flowlayout-in-android – Code-Apprentice Jan 25 '16 at 00:18
  • Thanks for pointing me to the term "FlowLayout". I found a library that does the thing that I was looking for – suku Jan 28 '16 at 05:54

1 Answers1

0

The library FlowLayout by Blazsolar does the above. It is very simple and easy to use.

https://github.com/blazsolar/FlowLayout

suku
  • 10,507
  • 16
  • 75
  • 120