title: Make GridView fit its container/constraints
body: <p>I'm making small android memory game.
  I've been troubling for a few hours with this issue, regarding GridView inside constraint layout. I'd want it to fit its constraints, without need to scroll. </p>
  
  <p>Is there any way to  make the GridView completely fit inside the container, so the horizontal axis is going to be exact? Bottom edge should match <code>@+id/text_time</code> top edge. Internet and Stackoverflow are full of these examples, but for a ImageView.ScaleType.
  Below is a short layout code:</p>
  
  <pre><code>&lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/colorPrimary"
  tools:context="com.example.alen.matchinggameaddiko.activities.GameActivity"&gt;
  
  &lt;ImageView
      android:id="@+id/imageView"
      android:layout_width="@dimen/gameLogoSize"
      android:layout_height="0px"
      android:layout_marginLeft="@dimen/gameLogoMarginLeft"
      android:layout_marginTop="@dimen/gameLogoMarginTop"
      android:src="@drawable/addiko_logo_white"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent" /&gt;
  
  &lt;GridView
      android:id="@+id/grid_game"
      android:layout_width="0px"
      android:layout_height="0px"
      android:layout_marginBottom="10dp"
      android:layout_marginTop="@dimen/gameGridMarginTop"
      android:gravity="center"
      android:horizontalSpacing="@dimen/gameGridHorizontalSpacing"
      android:numColumns="4"
      android:verticalSpacing="@dimen/gameGridVerticalSpacing"
      app:layout_constraintBottom_toTopOf="@id/text_time"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/imageView" /&gt;
  
  &lt;TextView
      android:id="@+id/text_time"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginBottom="@dimen/timerMarginBottom"
      android:layout_marginRight="@dimen/timerMarginRight"
      android:textColor="@color/colorText"
      android:textSize="@dimen/timerTextSize"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent" /&gt;
  </code></pre>
  
  <p></p>
  
  <p><a href="https://i.stack.imgur.com/UwTEV.png" rel="nofollow noreferrer">Here is a photo</a>. I draw a red line, so it's more clear where the GridView should end.
  Thanks a lot guys.</p>