Try changing the class type when supplying the LayoutParams, see:
http://caguilartech.blogspot.com/2009/08/notes-on-android-tablelayouts-and.html

private TableRow createNewTableRow(TableRow newRow){

        newRow.setLayoutParams(new TableLayout.LayoutParams
(TableLayout.LayoutParams.WRAP_CONTENT,TableLayout.LayoutParams.WRAP_CONTENĀ­
T)) ;

        LinearLayout newLinearLayout = new LinearLayout
(appActivity) ;

        newLinearLayout.setLayoutParams(new TableRow.LayoutParams
(TableRow.LayoutParams.FILL_PARENT,TableRow.LayoutParams.WRAP_CONTENT)) ;

-justin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to