title: Aligning items inside my TableRow
body: <p>I have a TableRow which has four text views.I'm trying to align the items inside my tablerow. When the string of item 1(TextView) is long, it pushes the item 2. I tried setting android:layout_weight="1" equally but that didn't work. Is there a way I can align the items? </p>
  
  <p><img src="https://i.stack.imgur.com/3Aipb.png" alt=""></p>
  
  <p>This is my row.xml</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="wrap_content"
      android:gravity="center"
      android:background="@color/white_background"
      android:orientation="vertical" &gt;
  
  
      &lt;TableRow
          android:id="@+id/product_header"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@color/white_background"
          android:layout_margin="5dp"
          android:orientation="vertical" &gt;
  
          &lt;View
              android:layout_width="0dp"
              android:layout_height="1dp"
              android:background="@color/black" /&gt;
  
          &lt;TextView
              android:id="@+id/product_name"
              style="@style/product_row"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="8"
              android:ellipsize="end"
              android:singleLine="true"
              android:layout_marginLeft="1dp"
              android:textColor="@color/black" /&gt;
  
          &lt;TextView
              android:id="@+id/product_id"
              style="@style/product_row"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_marginRight="100dp"
              android:layout_weight="5"
              android:ellipsize="end"
              android:singleLine="true"
              android:gravity="right"
              android:textColor="@color/black" /&gt;
          &lt;View
              android:layout_width="0dp"
              android:layout_height="1dp"
              android:background="@color/black" /&gt;
          &lt;TextView
              android:id="@+id/total_quantity"
              style="@style/product_row"
              android:layout_width="wrap_content"
              android:layout_weight="3"
              android:ellipsize="end"
              android:singleLine="true"
              android:layout_marginRight="40dp"
              android:gravity="center_horizontal"
              android:layout_height="wrap_content"
              android:textColor="@color/black" /&gt;
          &lt;View
              android:layout_width="0dp"
              android:layout_height="1dp"
              android:background="@color/black" /&gt;
          &lt;TextView
              android:id="@+id/total_value_amt"
              style="@style/product_row"
              android:layout_height="wrap_content"
              android:layout_width="wrap_content"
              android:layout_marginLeft="5dp"
              android:layout_weight="1"
              android:ellipsize="end"
              android:singleLine="true"
              android:gravity="right"
              android:text="@string/product_row_value"
              android:textColor="@color/black"/&gt;
      &lt;/TableRow&gt;
  
      &lt;TextView
          android:id="@+id/employee_header"
          style="@style/product_row"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/product_header"
          android:layout_gravity="left"
          android:layout_marginLeft="5dp"
          android:gravity="left"
          android:visibility="gone"
          android:text="@string/crew" /&gt;
      &lt;TextView
          android:id="@+id/quantity_header"
          style="@style/product_row"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_below="@+id/product_header"
          android:layout_gravity="right"
          android:layout_marginRight="5dp"
          android:gravity="right"
          android:visibility="gone"
          android:text="@string/quantity_sold" /&gt;
      &lt;TableLayout
          android:id="@+id/sales_report_table"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@color/grey_light"
          /&gt;
      &lt;TextView
          style="@style/product_row"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_gravity="center"
          android:layout_marginRight="5dp"
          android:gravity="right"
          android:textColor="@color/black_font" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>