添加按钮组件问题

image

如图,请问生成button的时候能不能指定button 在layout容器中的 X、Y轴的位置

layout 没有这个接口。你试试 GridLayout 呢?GridLayout 支持 add(component, col, row) 方法

好的,正在尝试解决方法,谢谢解答