如何以编程方式跨越表格布局中的列?

发布于 2024-09-16 05:09:18 字数 106 浏览 1 评论 0原文

我有一个以编程方式构建的动态表格布局。每隔一段时间,其中一行就有一个子 SeekBar。

对于如何以编程方式使这些 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

万劫不复 2024-09-23 05:09:18

这应该会让你朝着正确的方向前进,它要求 Android 为你管理该列,并在该行有空间时拉伸它。

public void setColumnStretchable(int columnIndex, boolean isStretchable)

来源:

开发人员.android.com

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文