Here's a screenshot of the issue:
The bottom buttons need to have their heights respected..
Here's what I've tried: layout_below height constraints
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/blackish"
>
<GridView
android:id="@+id/gridview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:gravity="center"
android:layout_marginRight="10dp"
android:columnWidth="100dp"
android:numColumns="auto_fit"
android:verticalSpacing="50dp"
android:horizontalSpacing="10dp"
android:stretchMode="spacingWidthUniform"
android:background="@color/blackish"
android:layout_toStartOf="@+id/bottomButtons"
/>
<RelativeLayout
android:id="@+id/bottomButtons"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/gridview"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_alignParentBottom="true"
android:orientation="horizontal" >
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:text="button1"
android:layout_alignParentBottom="true"
android:id="@+id/button" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="5dp"
android:text="button2"
android:layout_alignParentBottom="true"
android:id="@+id/button2" />
</LinearLayout>
</RelativeLayout>
</android.support.constraint.ConstraintLayout>
I imagine the issue is the GridView has "match parent" as it's height, I couldn't seem to use google well enough to find "match until buttons are reached."