title: 2 column 3 row Exact Fit, Relative Layout (Android)
body: <p>I have six ImageView blocks I want to fit in a vertical layout, 2 columns by 3 rows.</p>
  
  <p>How do I get these to fit exactly, so that I will have six evenly distributed blocks.</p>
  
  <p>There is a slight overlap between the last four blocks.</p>
  
  <p>(ImageView 3-6 are basically the same as the first two.)</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout 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"&gt;
  
  
  &lt;ImageView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:layout_alignParentLeft="true"
      android:layout_alignParentStart="true"
      android:id="@+id/imageView"
      android:padding="96dp"
      android:background="@color/colorAccent" /&gt;
  
  &lt;ImageView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignBottom="@+id/imageView"
      android:layout_alignParentRight="true"
      android:id="@+id/imageView2"
      android:background="@color/colorPrimary"
      android:padding="96dp" /&gt;
  
  &lt;ImageView
     3 /&gt;
  
  &lt;ImageView
     4  /&gt;
  
  &lt;ImageView
     5 /&gt;
  
  &lt;ImageView
     6  /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>