Non scrolling GridView
<p>I want to use a <code>GridView</code> that will just expand it's height to show all it's children. The reason for this is that I want to place a custom view above the <code>GridView</code>, which should scroll along with the <code>GridView</code>:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" &gt;

    &lt;LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" &gt;

        &lt;com.myapp.myview
            android:id="@+id/myview"
            android:layout_width="match_parent"
            android:layout_height="50dp" /&gt;

        &lt;GridView
            android:id="@+id/gv"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:horizontalSpacing="@dimen/spacing_small"
            android:numColumns="2"
            android:padding="@dimen/spacing_small"
            android:verticalSpacing="@dimen/spacing_small" /&gt;
    &lt;/LinearLayout&gt;

&lt;/ScrollView&gt;
</code></pre>

<p>How can I achieve this?</p>
