GridLayout
//容器下面元素的列数,makeColumnsEqualWidth是否相同大小单元格
public GridLayout(int numColumns, boolean makeColumnsEqualWidth);
GridData类可以与GridLayout类配合使用,其中构造函数有:
//容器下面元素的列数,makeColumnsEqualWidth是否相同大小单元格
public GridLayout(int numColumns, boolean makeColumnsEqualWidth);
GridData类可以与GridLayout类配合使用,其中构造函数有:
public GridData();
public GridData(int style);
//设置控件的宽、高度
public GridData(int width,
int height);
// horizontalAlignment 位置 GridData.BEGINNING
// grabExcessHorizontalSpace是否填充本行
public GridData(int horizontalAlignment,
int verticalAlignment,
boolean grabExcessHorizontalSpace,
boolean grabExcessVerticalSpace);
//horizontalSpan 控件占据几列
public GridData(int horizontalAlignment,
int verticalAlignment,
boolean grabExcessHorizontalSpace,
boolean grabExcessVerticalSpace,
int horizontalSpan,
int verticalSpan)