public static class LinearLayoutCompat.LayoutParams extends ViewGroup.MarginLayoutParams
Modifier and Type | Field and Description |
---|---|
int |
gravity
Gravity for the view associated with these LayoutParams.
|
float |
weight
Indicates how much of the extra space in the LinearLayout will be
allocated to the view associated with these LayoutParams.
|
bottomMargin, DEFAULT_MARGIN_RELATIVE, leftMargin, rightMargin, topMargin
FILL_PARENT, height, layoutAnimationParameters, MATCH_PARENT, width, WRAP_CONTENT
Constructor and Description |
---|
LayoutParams(Context c,
AttributeSet attrs) |
LayoutParams(int width,
int height) |
LayoutParams(int width,
int height,
float weight)
Creates a new set of layout parameters with the specified width, height
and weight.
|
LayoutParams(LinearLayoutCompat.LayoutParams source)
Copy constructor.
|
LayoutParams(ViewGroup.LayoutParams p) |
LayoutParams(ViewGroup.MarginLayoutParams source) |
copyMarginsFrom, encodeProperties, getLayoutDirection, getMarginEnd, getMarginStart, isLayoutRtl, isMarginRelative, onDebugDraw, resolveLayoutDirection, setLayoutDirection, setMarginEnd, setMargins, setMarginsRelative, setMarginStart
debug, setBaseAttributes, sizeToString
public float weight
public int gravity
Gravity
public LayoutParams(Context c, AttributeSet attrs)
public LayoutParams(int width, int height)
public LayoutParams(int width, int height, float weight)
width
- the width, either ViewGroup.LayoutParams.MATCH_PARENT
,
ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixelsheight
- the height, either ViewGroup.LayoutParams.MATCH_PARENT
,
ViewGroup.LayoutParams.WRAP_CONTENT
or a fixed size in pixelsweight
- the weightpublic LayoutParams(ViewGroup.LayoutParams p)
public LayoutParams(ViewGroup.MarginLayoutParams source)
public LayoutParams(LinearLayoutCompat.LayoutParams source)
source
- The layout params to copy from.