title: How to limit the height of a ListView within a GridLayout?
body: <p>I have a <code>GridLayout</code> containing a <code>ListView</code> and a <code>TextView</code>. When items are added
  to the <code>ListView</code> it will grow in size and push the <code>TextView</code> below it out of the
  screen. I thought that by setting <code>layout_gravity="fill"</code> on the ListView it
  would not grow at all but rather take up all the available space.</p>
  
  <p>How do I configure the <code>ListView</code> to take up the available space instead of
  growing and pushing views below it out of the screen?</p>
  
  <p>I am looking for a solution using a <code>GridLayout</code>. I am aware that in my case a
  <code>LinearLayout</code> would work aswell. However this is just a minimal test case to
  illustrate my problem.</p>
  
  <p>I do not want to set the height programmatically, if possible.</p>
  
  <pre><code>&lt;android.support.v7.widget.GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:columnCount="1"
      app:useDefaultMargins="true" &gt;
  
      &lt;ListView
          app:layout_gravity="fill" /&gt;
  
      &lt;TextView
          android:text="TextView" /&gt;
  
  &lt;/android.support.v7.widget.GridLayout&gt;
  </code></pre>