title: How to set text view aligned to parent textview inside relative layout in android?
body: <pre><code>&lt;RelativeLayout
      android:id="@+id/rl_top_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;TextView
          android:id="@+id/text1"
          style="@style/Typeface.H1.Bold.TextDarkGrey"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:gravity="left"
          android:text="500pts"
          android:textColor="@color/text_dark_grey"
          android:textSize="@dimen/tfl_24"
          android:textStyle="bold" /&gt;
  
      &lt;TextView
          android:id="@+id/text2"
          style="@style/Typeface.H1.Bold.TextDarkGrey"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:gravity="right"
          android:text="£5.00"
          android:textColor="@color/text_dark_grey"
          android:textSize="@dimen/tfl_24"
          android:textStyle="bold" /&gt;
  
      &lt;TextView
          android:id="@+id/text3"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_below="@+id/fdv_text_points"
          android:layout_gravity="center"
          android:gravity="left"
          android:text="@string/points"
          android:textColor="@color/text_mid_grey"
          android:textSize="@dimen/tfl_16" /&gt;
  
      &lt;TextView
          android:id="@+id/text4"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_below="@+id/fdv_text_voucher"
          android:layout_gravity="center"
          android:gravity="right"
          android:text="@string/voucher"
          android:textColor="@color/text_mid_grey"
          android:textSize="@dimen/tfl_16" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>This is my xml i have set two text view left and right and also below two more text view left and right i want below text view should aligned to parent top text view like text1 aligned center to text3 and text2 aligned to text 4 currently its coming text1 start to text3 and text2 start of text 4 please suggest me how to set aligned center of parent </p>