public static class TableLayout.Constraint extends Object
Constructor and Description |
---|
Constraint() |
Modifier and Type | Method and Description |
---|---|
int |
getColumn() |
int |
getHeightPercentage() |
int |
getHorizontalAlign() |
int |
getHorizontalSpan() |
int |
getRow() |
int |
getVerticalAlign() |
int |
getVerticalSpan() |
int |
getWidthPercentage() |
TableLayout.Constraint |
ha(int align)
Sets the horizontal alignment of the table cell
|
TableLayout.Constraint |
heightPercentage(int height)
Sets the row height based on percentage of the parent
|
TableLayout.Constraint |
horizontalAlign(int align)
Sets the horizontal alignment of the table cell
|
TableLayout.Constraint |
horizontalSpan(int span)
Sets the cells to span horizontally, this number must never be smaller than 1
|
TableLayout.Constraint |
hp(int height)
Sets the row height based on percentage of the parent
|
TableLayout.Constraint |
hs(int span)
Sets the cells to span horizontally, this number must never be smaller than 1
|
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
|
String |
toString()
Returns a string representation of the object.
|
TableLayout.Constraint |
va(int valign)
Sets the vertical alignment of the table cell
|
TableLayout.Constraint |
verticalAlign(int valign)
Sets the vertical alignment of the table cell
|
TableLayout.Constraint |
verticalSpan(int span)
Sets the cells to span vertically, this number must never be smaller than 1
|
TableLayout.Constraint |
vs(int span)
Sets the cells to span vertically, this number must never be smaller than 1
|
TableLayout.Constraint |
widthPercentage(int width)
Sets the column width based on percentage of the parent
|
TableLayout.Constraint |
wp(int width)
Sets the column width based on percentage of the parent
|
public String toString()
public void setVerticalSpan(int span)
span
- a number larger than 1public TableLayout.Constraint verticalSpan(int span)
span
- a number larger than 1public TableLayout.Constraint vs(int span)
span
- a number larger than 1public void setHorizontalSpan(int span)
span
- a number larger than 1public TableLayout.Constraint horizontalSpan(int span)
span
- a number larger than 1public TableLayout.Constraint hs(int span)
span
- a number larger than 1public void setWidthPercentage(int width)
width
- negative number indicates ignoring this memberpublic TableLayout.Constraint widthPercentage(int width)
width
- negative number indicates ignoring this memberpublic TableLayout.Constraint wp(int width)
width
- negative number indicates ignoring this memberpublic void setHeightPercentage(int height)
height
- negative number indicates ignoring this memberpublic TableLayout.Constraint heightPercentage(int height)
height
- negative number indicates ignoring this memberpublic TableLayout.Constraint hp(int height)
height
- negative number indicates ignoring this memberpublic void setHorizontalAlign(int align)
align
- Component.LEFT/RIGHT/CENTERpublic TableLayout.Constraint horizontalAlign(int align)
align
- Component.LEFT/RIGHT/CENTERpublic TableLayout.Constraint ha(int align)
align
- Component.LEFT/RIGHT/CENTERpublic void setVerticalAlign(int valign)
valign
- Component.TOP/BOTTOM/CENTERpublic TableLayout.Constraint verticalAlign(int valign)
valign
- Component.TOP/BOTTOM/CENTERpublic TableLayout.Constraint va(int valign)
valign
- Component.TOP/BOTTOM/CENTERpublic int getRow()
public int getColumn()
public int getWidthPercentage()
public int getHeightPercentage()
public int getHorizontalSpan()
public int getVerticalSpan()
public int getHorizontalAlign()
public int getVerticalAlign()