It seems that GridLayout will always push its children to a layout that matches their needs. for example, the following declaration:
<?xml version="1.0" encoding="utf-8"?>
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:columnCount="3"
android:orientation="vertical"
android:rowCount="4"
android:useDefaultMargins="true" >
...
<ImageView
android:id="@+id/main_image"
android:layout_column="1"
android:layout_columnSpan="2"
android:layout_row="3"
android:scaleType="fitStart" />
</GridLayout>
GridLayout declares fill_parent, and so I expect it to not overflow. GridLayout should accept the size of the parent, which in this case is the window (full height). However, in the hierarchy viewer, GridLayout is set to both Wrap_content for both vertical and horizontal.
Thus, an ImageView (representing a large image) or any textual representation will click to fit on its own and as such a container overflow.
, :


, , . , . useDefaultMargins="false" , gridlayout.
: