views:

29

answers:

1

I have a dynamic tablelayout that I build programmatically. Every so often one of the rows has a child SeekBar.

Any suggestions for how I can programmatically make these SeekBars span across all the table columns?

Thanks.

+1  A: 

This should get you going in the right direction, it Android to manage the column for you and stretch it if there is room on the row.

public void setColumnStretchable(int columnIndex, boolean isStretchable)

Source:

http://developer.android.com/reference/android/widget/TableLayout.html#setColumnStretchable%28int,%20boolean%29

Austyn Mahoney
Yep, got it. Many thanks.
ianww
Make sure to mark this as the accepted answer by clicking the green checkmark to the left if this resolved your problem.
Austyn Mahoney