I’m trying to create a home replacement application and I want to know my options, I could use a TableLayout or nested LinearLayouts but the icon size and number of rows and columns of icons can change so I’m looking for something easier to manage, maybe just one layout and have items accomodate automatically somehow.
In HTML div you can use float:left and if you append items on a container they accomodate like this:

Is there a way to do something similar in Java? If not what is the recommended way to create a grid layout?
I ended up using a set of
<LinearViews>and appending buttons directly on them, I think it’s the easiest method if the number of rowsXcols can vary.