How to configure android: layout_column programmatically

How can I programmatically set android:layout_column ?

+4
source share
1 answer

eg. you have a TextView, do it like this.

 TextView tv = new TextView(this); tv.setLayoutParams(new TableRow.LayoutParams(1)); 
+5
source

All Articles