GridLayout (not GridView) how to stretch all children evenly
问题 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: <?xml version=\"1.0\" encoding=\"utf-8\"?> <GridLayout xmlns:android=\"http://schemas.android.com/apk/res/android\" android:id=\"@+id/favorites_grid\" android:layout_width=\"match_parent\" android:layout_height=\"match_parent\" android:background=\"#00ff00\" android:rowCount=\"2\" android:columnCount=\"2\"> <Button android:text=\"Cell 0\" android