title: aligning columns in table layout Android
body: <p>I would like to align my table layout contents (textviews) with at least 3 columns straight with each other like this(i hope you can see it)</p>
  
  <p>item1a     item1b     item1c
  item2a     item2b     item2c</p>
  
  <p>and so on, and im populating these values from the database through a custom listview. this is what i have done so far, may you help me </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="50dp"&gt;
  
  
  
  
  
  &lt;TableLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:shrinkColumns="*"
     android:stretchColumns="*"     android:background="#ffffff"
      android:layout_alignParentTop="true"&gt;
  
  
  &lt;!-- Row 1 with single column --&gt;
  &lt;TableRow
      android:layout_height="50dp"
      android:layout_width="match_parent"
      android:gravity="center"&gt;
  
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="50dp"
          android:textAppearance="?android:attr/textAppearanceMedium"
          android:background="#000"
          android:textColor="#fff"
          android:layout_column="0"
          android:id="@+id/textsdid"
          android:layout_marginStart="0dp"
          android:layout_marginEnd="10dp"
          android:gravity="left|center"
          android:textAlignment="center" /&gt;
  
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="50dp"
          android:textAppearance="?android:attr/textAppearanceMedium"
          android:background="#000"
          android:textColor="#fff"
          android:layout_column="1"
          android:id="@+id/textsdrtype"
          android:layout_marginStart="0dp"
          android:layout_marginEnd="10dp"
          android:gravity="left|center"
          android:textAlignment="center" /&gt;
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="50dp"
          android:textAppearance="?android:attr/textAppearanceMedium"
          android:background="#000"
          android:textColor="#fff"
          android:layout_column="2"
          android:id="@+id/textstaxperiod"
          android:layout_marginStart="0dp"
          android:layout_marginEnd="10dp"
          android:gravity="left|center"
          android:textAlignment="center" /&gt;
      &lt;TextView
          android:layout_width="match_parent"
          android:layout_height="50dp"
          android:textAppearance="?android:attr/textAppearanceMedium"
          android:background="#000"
          android:textColor="#fff"
          android:layout_column="3"
          android:id="@+id/textsdduedate"
          android:layout_marginStart="0dp"
          android:layout_marginEnd="10dp"
          android:gravity="left|center"
          android:textAlignment="center" /&gt;
  
  
  
  
        &lt;/TableRow&gt;
  
  
        &lt;/TableLayout&gt;
  </code></pre>
  
  <p></p>