title: RelativeLayout: align View centered horizontal or vertical relative to other view
body: <p>Is it possible to align a view in XML in a RelativeLayout centered horizontal or vertical according another already existing view.</p>
  
  <p>For example: lets say there is something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/ImCGw.png" alt="enter image description here"></p>
  
  <p>The second text view should be displayed centered below the first text view:</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" &gt;
  
      &lt;TextView
          android:id="@+id/textView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_marginLeft="72dp"
          android:text="dynamic text" /&gt;
  
      &lt;TextView
          android:id="@+id/second"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@id/textView"
          android:layout_marginLeft="43dp" &lt;!-- Is there a rule to center it? --&gt;
          android:text="centered below text 1" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Is is possible to implement something like that in XML? Is there a rule that i have missed yet? I do not want to calculate the position programmatically</p>