public static class LinearLayout.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_RELATIVE, leftMargin, rightMargin, topMargin
FILL_PARENT, height, layoutAnimationParameters, MATCH_PARENT, width, WRAP_CONTENT
Constructor and Description |
---|
LinearLayout.LayoutParams(Context c,
AttributeSet attrs) |
LinearLayout.LayoutParams(int width,
int height) |
LinearLayout.LayoutParams(int width,
int height,
float weight)
Creates a new set of layout parameters with the specified width, height
and weight.
|
LinearLayout.LayoutParams(ViewGroup.LayoutParams p) |
LinearLayout.LayoutParams(ViewGroup.MarginLayoutParams source) |
Modifier and Type | Method and Description |
---|---|
String |
debug(String output)
Returns a String representation of this set of layout parameters.
|
getLayoutDirection, getMarginEnd, getMarginStart, isLayoutRtl, isMarginRelative, onDebugDraw, resolveLayoutDirection, setLayoutDirection, setMarginEnd, setMargins, setMarginsRelative, setMarginStart
setBaseAttributes, sizeToString
public float weight
public int gravity
Gravity
public LinearLayout.LayoutParams(Context c, AttributeSet attrs)
public LinearLayout.LayoutParams(int width, int height)
public LinearLayout.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 LinearLayout.LayoutParams(ViewGroup.LayoutParams p)
public LinearLayout.LayoutParams(ViewGroup.MarginLayoutParams source)
public String debug(String output)
ViewGroup.LayoutParams
debug
in class ViewGroup.LayoutParams
output
- the String to prepend to the internal representation