public static class TableRow.LayoutParams extends LinearLayout.LayoutParams
Set of layout parameters used in table rows.
TableLayout.LayoutParams
Modifier and Type | Field and Description |
---|---|
int |
column
The column index of the cell represented by the widget.
|
int |
span
The number of columns the widgets spans over.
|
gravity, weight
bottomMargin, DEFAULT_MARGIN_RELATIVE, leftMargin, rightMargin, topMargin
FILL_PARENT, height, layoutAnimationParameters, MATCH_PARENT, width, WRAP_CONTENT
Constructor and Description |
---|
LayoutParams()
Sets the child width to
ViewGroup.LayoutParams
and the child height to
ViewGroup.LayoutParams.WRAP_CONTENT . |
LayoutParams(Context c,
AttributeSet attrs) |
LayoutParams(int column)
Puts the view in the specified column.
|
LayoutParams(int w,
int h)
Sets the child width and the child height.
|
LayoutParams(int w,
int h,
float initWeight)
Sets the child width, height and weight.
|
LayoutParams(ViewGroup.LayoutParams p) |
LayoutParams(ViewGroup.MarginLayoutParams source) |
Modifier and Type | Method and Description |
---|---|
protected void |
encodeProperties(ViewHierarchyEncoder encoder) |
protected void |
setBaseAttributes(TypedArray a,
int widthAttr,
int heightAttr)
Extracts the layout parameters from the supplied attributes.
|
debug
copyMarginsFrom, getLayoutDirection, getMarginEnd, getMarginStart, isLayoutRtl, isMarginRelative, onDebugDraw, resolveLayoutDirection, setLayoutDirection, setMarginEnd, setMargins, setMarginsRelative, setMarginStart
sizeToString
public int column
The column index of the cell represented by the widget.
public int span
The number of columns the widgets spans over.
public LayoutParams(Context c, AttributeSet attrs)
public LayoutParams(int w, int h)
Sets the child width and the child height.
w
- the desired widthh
- the desired heightpublic LayoutParams(int w, int h, float initWeight)
Sets the child width, height and weight.
w
- the desired widthh
- the desired heightinitWeight
- the desired weightpublic LayoutParams()
Sets the child width to ViewGroup.LayoutParams
and the child height to
ViewGroup.LayoutParams.WRAP_CONTENT
.
public LayoutParams(int column)
Puts the view in the specified column.
Sets the child width to ViewGroup.LayoutParams.MATCH_PARENT
and the child height to
ViewGroup.LayoutParams.WRAP_CONTENT
.
column
- the column index for the viewpublic LayoutParams(ViewGroup.LayoutParams p)
public LayoutParams(ViewGroup.MarginLayoutParams source)
protected void setBaseAttributes(TypedArray a, int widthAttr, int heightAttr)
ViewGroup.LayoutParams
setBaseAttributes
in class ViewGroup.LayoutParams
a
- the style attributes to extract the parameters fromwidthAttr
- the identifier of the width attributeheightAttr
- the identifier of the height attributeprotected void encodeProperties(ViewHierarchyEncoder encoder)
encodeProperties
in class LinearLayout.LayoutParams