title: How to vertically and horizontally center a linear layout inside a relative layout
body: <p>Been trying to do this for a while, and nothing is working.</p>
  
  <p>I'm trying to vertical and horizontal center a linear layout inside a relative layout. </p>
  
  <p>The point is to get two text-views perfectly centered inside the relative layout. </p>
  
  <pre><code>&lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="horizontal"
      &gt;
  
      &lt;LinearLayout
          android:layout_width="350dp"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          &gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="test"
              android:textColor="#ff0fff"
              android:background="#ffffff"
              android:textSize="20dp"
              /&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="test"
              android:textColor="#ff0fff"
              android:background="#ffffff"
              android:textSize="20dp"
              /&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Any help is appreciated.</p>