TableLayout.LayoutParams
public
static
class
TableLayout.LayoutParams
extends LinearLayout.LayoutParams
This set of layout parameters enforces the width of each child to be
ViewGroup.LayoutParams.MATCH_PARENT and the height of each child to be
ViewGroup.LayoutParams.WRAP_CONTENT, but only if the height is not specified.
Summary
Inherited XML attributes | |
|---|---|
Inherited constants |
|---|
Inherited fields |
|---|
Public constructors | |
|---|---|
LayoutParams()
Sets the child width to
|
|
LayoutParams(Context c, AttributeSet attrs)
|
|
LayoutParams(ViewGroup.LayoutParams p)
|
|
LayoutParams(ViewGroup.MarginLayoutParams source)
|
|
LayoutParams(int w, int h)
|
|
LayoutParams(int w, int h, float initWeight)
|
|
Protected methods | |
|---|---|
void
|
setBaseAttributes(TypedArray a, int widthAttr, int heightAttr)
Fixes the row's width to
|
Inherited methods | |
|---|---|
Public constructors
LayoutParams
public LayoutParams ()
Sets the child width to
ViewGroup.LayoutParams and the child height to
ViewGroup.LayoutParams.WRAP_CONTENT.
LayoutParams
public LayoutParams (Context c, AttributeSet attrs)
| Parameters | |
|---|---|
c |
Context |
attrs |
AttributeSet |
LayoutParams
public LayoutParams (ViewGroup.LayoutParams p)
| Parameters | |
|---|---|
p |
ViewGroup.LayoutParams |
LayoutParams
public LayoutParams (ViewGroup.MarginLayoutParams source)
| Parameters | |
|---|---|
source |
ViewGroup.MarginLayoutParams |
LayoutParams
public LayoutParams (int w,
int h,
float initWeight)| Parameters | |
|---|---|
w |
int |
h |
int |
initWeight |
float |
Protected methods
setBaseAttributes
protected void setBaseAttributes (TypedArray a, int widthAttr, int heightAttr)
Fixes the row's width to
ViewGroup.LayoutParams.MATCH_PARENT; the row's
height is fixed to
ViewGroup.LayoutParams.WRAP_CONTENT if no layout
height is specified.
