开发者

How can I programmatically span columns in a tablelayout?

开发者 https://www.devze.com 2023-01-14 10:47 出处:网络
I have a dynamic tablelayout that I build programmatically.Every so often开发者_如何转开发 one of the rows has a child SeekBar.

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.


This should get you going in the right direction, it asks 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:

developer.android.com

0

精彩评论

暂无评论...
验证码 换一张
取 消