My layout code and its graphical representation is:

This is just an example, I have about 30 Buttons in my application inside a GridLayout.
I want my Buttons to fill their entire cell in the grid and the grid’s columns should be in even width/height.
I cant seem to get it done, any help would be welcome.
I haven’t use
GridLayoutto much to recommend something about using it, what I can recommend you is to use aTableLayout. I say this because your layout fits in theTableLayout‘s scope pretty well and after a quick browsing ofGridLayout‘s documentation this seems like a problem:GridLayout does not provide support for the principle of weight, as defined in weight. In general, it is not therefore possible to configure a GridLayout to distribute excess space between multiple components.
Also
GridLayoutwas introduced inICS.You can see an example for your layout using
TableLayouthere:https://gist.github.com/3788301
If you don’t want the table to fill the entire height then remove the
weigthSumproperty from theTableLayoutandlayout_weight="1"from theTableRows.