title: How to size two textview side by side and use 50% width of screen
body: <p>I have the following code which has 2 textviews side by side in 4 rows:</p>
  
  <pre><code>&lt;LinearLayout
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:padding="5dp"
      android:layout_weight="1.1"
      android:gravity="center"
      android:weightSum="4" &gt;
      &lt;LinearLayout
          android:orientation="horizontal"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="1"
          android:gravity="center" &gt;
          &lt;TextView
              android:id="@+id/tvCodeNameDetail"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="cnsdsdsf:"
              android:layout_weight="1"
              android:gravity="center"
              android:background="#ff0000" /&gt;
          &lt;TextView
              android:id="@+id/tvCodeName"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="TextView"
              android:layout_weight="1"
              android:gravity="center"
              android:background="#00FF00" /&gt;
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:orientation="horizontal"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="1"
          android:gravity="center" &gt;
          &lt;TextView
              android:id="@+id/tvVersionDetail"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="vnddf: "
              android:layout_weight="1"
              android:gravity="center"
              android:background="#00ff00" /&gt;
          &lt;TextView
              android:id="@+id/tvVersion"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="TextView"
              android:layout_weight="1"
              android:gravity="center"
              android:background="#ff0000" /&gt;
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:orientation="horizontal"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="1"
          android:gravity="center" &gt;
          &lt;TextView
              android:id="@+id/tvReleaseDetail"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="rdsdfsdfsfsdf: "
              android:layout_weight="1"
              android:gravity="center"
              android:background="#FF0000" /&gt;
          &lt;TextView
              android:id="@+id/tvRelease"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="TextView"
              android:layout_weight="1"
              android:gravity="center"
              android:background="#00FF00" /&gt;
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:orientation="horizontal"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="1"
          android:gravity="center" &gt;
          &lt;TextView
              android:id="@+id/tvAPIDetail"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="apdd: "
              android:layout_weight="1"
              android:gravity="center"
              android:background="#00ff00" /&gt;
          &lt;TextView
              android:id="@+id/tvAPI"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="TextView"
              android:layout_weight="1"
              android:gravity="center"
              android:background="#ff0000" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>It displays the following:</p>
  
  <p><img src="https://i.stack.imgur.com/rnpp1.png" alt="enter image description here"></p>
  
  <p>How do I modify the code to make it ALWAYS 50%/50% no what text is inside the textview?</p>