在 android 中如何设置 Table Column

我在设置 table row data (text view)的参数时出现问题,我想添加一些columns来获得一个好的布局。如何用代码形式动态的实现?

<TableRow > 
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="ok"    
    />
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="bye" />

我想让这两个textview变成两个column,并在相应的屏幕上设置。

<TableLayout
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:stretchColumns="0,1" >
   <TableRow android:layout_width="fill_parent"> 
     <TextView
       android:layout_width="wrap_content"
       android:layout_height="wrap_content"
       android:text="ok"    
      />
    <TextView
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="bye" />
   </TableRow>
</TableLayout>

设置布局方式android:orientation=""horizontal""