title: layout_marginBottom not working when using match_parent or wrap_content under relativelayout
body: <p>I am writing this layout code for my listview.
  Below is d code</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:padding="5dp" &gt;
  
  &lt;ImageView
  android:id="@+id/thumb"
  android:layout_width="70dp"
  android:layout_height="70dp"
  android:layout_marginTop="20dp"
  android:layout_marginLeft="15dp"
  android:layout_marginRight="10dp"
  android:paddingBottom="10dp"
  android:contentDescription="@string/app_name" /&gt;
  
  &lt;LinearLayout
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_centerVertical="true"
  android:layout_marginLeft="10dp"
  android:layout_marginRight="5dp"
  android:layout_toLeftOf="@+id/arrow"
  android:layout_toRightOf="@+id/thumb"
  android:orientation="vertical" &gt;
  
  &lt;TextView
  android:id="@+id/title"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:text="@string/title"
  android:textSize="18sp"
  android:textStyle="bold"
  android:textColor="@color/white" /&gt;
  
  &lt;TextView
  android:id="@+id/desc"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_marginTop="5dp"
  android:text="@string/desc"
  android:textSize="12sp" /&gt;
  &lt;/LinearLayout&gt;
  
  &lt;ImageView
  android:id="@+id/arrow"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_alignParentRight="true"
  android:layout_centerVertical="true"
  android:layout_marginRight="5dp"
  android:contentDescription="@string/app_name"
  android:src="@drawable/ic_action_arrow_next" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>In the parent element of RelativeLayout the first child element ImageView is where the problem resides, in which all the layout margin properties except layout_marginBottom is working.
  What could be the problem, if someone can figure it out</p>
  
  <p><strong>Desired Image</strong></p>
  
  <p><img src="https://i.stack.imgur.com/7zlQV.jpg" alt="Desired Image"></p>
  
  <p><strong>What I have right now</strong></p>
  
  <p><img src="https://i.stack.imgur.com/RDOWg.png" alt="What I have right now"></p>