I’m trying to fit a 20×20 table into a view using a programmatically built TableLayout. The setStretchAllColumns/setShrinkAllColumns methods work perfectly for squeezing all the columns in, but I haven’t found a way to get all the rows in.
Is there a corresponding method for packing the rows in?
There aren’t any
setStretchAllColumns/setShrinkAllColumnsfor rows in aTableLayout. One thing that you could try(I haven’t tested it) is to give yourTableLayoutaweigtSumof20(with the methodsetWeightSum()) and then set theweight(thelayout_weightattribute from a xml layout) of1for each of your 20TableRows in theTableLayout.