public static class TableLayout.Constraint extends Object
Constructor and Description |
---|
Constraint() |
Modifier and Type | Method and Description |
---|---|
void |
setHeightPercentage(int height)
Sets the row height based on percentage of the parent
|
void |
setHorizontalAlign(int align)
Sets the horizontal alignment of the table cell
|
void |
setHorizontalSpan(int span)
Sets the cells to span horizontally, this number must never be smaller than 1
|
void |
setVerticalAlign(int valign)
Sets the vertical alignment of the table cell
|
void |
setVerticalSpan(int span)
Sets the cells to span vertically, this number must never be smaller than 1
|
void |
setWidthPercentage(int width)
Sets the column width based on percentage of the parent
|
public void setVerticalSpan(int span)
span
- a number larger than 1public void setHorizontalSpan(int span)
span
- a number larger than 1public void setWidthPercentage(int width)
width
- negative number indicates ignoring this memberpublic void setHeightPercentage(int height)
height
- negative number indicates ignoring this memberpublic void setHorizontalAlign(int align)
align
- Component.LEFT/RIGHT/CENTERpublic void setVerticalAlign(int valign)
valign
- Component.TOP/BOTTOM/CENTER