title: RelativeLayout center vertical
body: <p>I want to make a list row layout. This layout has a imageview in the most left, a textview right next to the imageview, and a imageview in the most right. I want all of them are center vertical.</p>
  
  <pre><code>&lt;RelativeLayout
      android:layout_width="fill_parent" android:layout_height="100dp"
      android:gravity="center_vertical"
      &gt;
      &lt;ImageView 
          android:id="@+id/icon"
          android:layout_width="50dp" android:layout_height="50dp"
          android:layout_gravity="center_vertical" /&gt;
      &lt;TextView 
          android:id="@+id/func_text" android:layout_toRightOf="@id/icon"
          android:layout_width="wrap_content" android:layout_height="100dp"
          android:layout_gravity="center_vertical" /&gt;
      &lt;ImageView 
          android:layout_width="50dp" android:layout_height="50dp"
          android:layout_alignParentRight="true"
          android:layout_gravity="center_vertical"
          android:src="@drawable/arrow" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I also tried to add <code>android:layout_centerVertical="true"</code> to the textview, but the result is the textview align bottom with the two imageview.
  I tried this in android 4.2 emulator.
  Anybody could help me about this?</p>