I want to have a 2x2 grid with a buttons inside. This is only ICS so I am trying to use the new GridLayout given.
Here\'s the XML of my layout:
<
i have same problem and i think just set width and height programmatically :
set width of button's with metrics.widthPixels / 2 metrics is object of DisplayMetrics.
GridLayout gridLayout=findViewById(R.id.grid); for (int i = 0; i