title: Align ImageView to center of a TextView in RelativeLayout
body: <p>I have a Relative Layout as below:</p>
  
  <pre><code>&lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="0dip"
      android:layout_weight="0.38"
      android:background="@drawable/layout"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/text1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:paddingLeft="10dp"
          android:layout_marginLeft="80dp"
          android:textColor="@color/text1color"
          android:textSize="15sp"
          android:textStyle="bold" /&gt;
  
      &lt;TextView
          android:id="@+id/text2"
          android:layout_width="200dp"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/text1"
          android:layout_below="@+id/text1"
          android:background="@drawable/text2_background"
          android:layout_marginTop="10dp"
          android:paddingLeft="10dp"
          android:textColor="@color/text2color"
          android:textSize="13sp" /&gt;
  
      &lt;com.widgets.CustomImageView
          android:id="@+id/myImage"
          android:layout_width="60dp"
          android:layout_height="60dp"
          android:layout_margin="0dp"
          android:layout_alignParentBottom="true"
          android:layout_toLeftOf="@+id/text2"
          android:src="@drawable/logo" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>The ImageView <code>@+id/myImage</code> needs to align to the center of <code>@+id/text2</code> TextView! Currently, it is aligning to the top of <code>@+id/text2</code> <strong>and</strong> is aligning to the layout's <code>parentBottom</code>. I don't want this hack. </p>
  
  <p>Is there a way of aligning the <code>ImageView</code> to the <code>TextView</code>'s <strong>center</strong>?</p>