I am working on an application that implements the aforementioned property in the TableLayout.
I was wondering could anyone please help me and show me how to do this programmatically and not in the layout file?
I am working on an application that implements the aforementioned property in the TableLayout.
I was wondering could anyone please help me and show me how to do this programmatically and not in the layout file?
Checkout for setColumnStretchable (int columnIndex, boolean isStretchable)
in the Android Docs.
Makes the given column stretchable or not. When stretchable, a column takes up as much as available space as possible in its row. Calling this method requests a layout operation.
setStretchAllColumns (boolean stretchAllColumns)
-
Convenience method to mark all columns as stretchable.