title: ImageView not taking full height available to it?
body: <p>I have created a list-item <code>layout</code> for <code>ListView</code>.The <code>ListView</code> item has a <code>ImageView</code> which I want to take up full height matching parent but its not using the full height.Also I want Image to be vertically centered .My List-item <code>layout</code> is :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/white"
      android:padding="15.0dip" &gt;
  
      &lt;LinearLayout
          android:id="@+id/navigationParent"
          android:layout_width="50.0dip"
          android:layout_height="match_parent"
          android:layout_alignParentRight="true"
          android:background="@color/blue" &gt;
  
          &lt;ImageView
              android:id="@+id/navigationItem"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center_vertical"
              android:src="@drawable/navigation_item" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;TextView
          android:id="@+id/nHeading"
          style="@style/listItemHeadingText"
          android:layout_toLeftOf="@id/navigationParent"/&gt;
  
      &lt;TextView
          android:id="@+id/nOverview"
          style="@style/listItemOverviewText"
          android:layout_below="@id/nHeading"
           android:layout_toLeftOf="@id/navigationParent"/&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The output I am getting is shown in below image :</p>
  
  <p><img src="https://i.stack.imgur.com/wzjRX.png" alt="enter image description here"></p>