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_CONTENT)) ;

        LinearLayout newLinearLayout = new LinearLayout
(appActivity) ;
        newLinearLayout.setOrientation(LinearLayout.HORIZONTAL);
        newLinearLayout.setLayoutParams(new
LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT)) ;

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

Reply via email to